A Database Error Occurred

Error Number: 1055

Expression #9 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'abhaf_bilingual.file_gallery.file_name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT events.event_id,short_title,trending, title, events.date,from_time,descrp,perma_link,file_name FROM events LEFT JOIN file_gallery ON file_gallery.type_id=events.event_id AND file_gallery.type=2 WHERE events.type=4 AND events.status=1 GROUP BY events.event_id ORDER BY events.date DESC

Filename: models/Events_model.php

Line Number: 159