- 06 May 2020, 04:26
#4725
Installed 16.04 Ubuntu LTS LAMP 5.6 PHP everything went great and most everything seems to work. However Im getting the following error if I go to Administration> User management
MySQL Query Failed: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'opencats.user.access_level' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SELECT
COUNT(user.site_id) AS totalUsers,
user.access_level,
site.user_licenses AS userLicenses
FROM
user
LEFT JOIN site
ON user.site_id = site.site_id
WHERE
user.site_id = 1
AND
user.access_level > 100
GROUP BY
user.site_id
MySQL Query Failed: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'opencats.user.access_level' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SELECT
COUNT(user.site_id) AS totalUsers,
user.access_level,
site.user_licenses AS userLicenses
FROM
user
LEFT JOIN site
ON user.site_id = site.site_id
WHERE
user.site_id = 1
AND
user.access_level > 100
GROUP BY
user.site_id