A Database Error Occurred

Error Number: 1055

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

SELECT ID,heading,dated,YEAR(dated) as postyear,MONTHNAME(dated) as postmonth,MONTH(dated) as postmonthno,count(*) as postcount FROM dve_cms_module_data WHERE sts='active' AND fk_cms_module_id='3' GROUP BY YEAR(dated),MONTH(dated) ORDER BY dated DESC;

Filename: front-modules/main/models/Main_model.php

Line Number: 107