I'm trying to select all columns from a database table and group it by one special column:
SELECT * FROM `table` GROUP BY `email`
But I get an error:
#1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'gassupplytool.ggg_nitrogen.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
I have done it for years this way without getting any problems. In this case I am working on a foreign server. Can anyone help?