Skip to content
Advertisement

Error in nonaggregate column which is not functionally dependent on columns in GROUP BY clause in sql

Error Number: 1055

Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column codelone.tags.post_id which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

Filename: models/Tag_model.php

Line Number: 106

What I tried:

but I don’t have super privilege’s. Is there have any way?

Advertisement

Answer

Use an aggregation function on the columns not in the GROUP BY. For instance:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement