A Database Error Occurred

Error Number: 1055

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'agencyne_agencynet.cm.cat_map_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT cm.*,c.cat_name,c.cat_for_event,c.cat_name from categories_mapping cm inner join categories c on c.cat_id = cm.category_id where c.cat_for_event != 0 group by c.cat_name

Filename: controllers/web/Events.php

Line Number: 35