I have a query:
SELECT u.user_id, f.eye_color, c.rating
FROM
user u LEFT JOIN connection c ON u.user_id = c.connection_user_id,
user_field f,
search s
WHERE
s.search_id = 1 AND
u.user_id = f.user_id AND
s.user_id != u.user_id
GROUP BY
u.user_id;
And this is the error it shows
Error Code: 1055. Expression #51 of SELECT list is not in GROUP BY clause and contains non aggregated column 'sos.c.rating' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by