A Database Error Occurred

Error Number: 1055

Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'airlinestrip_db.b.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT c.*,(SELECT COUNT(*) FROM blog WHERE blog.Category = c.id) as totalpost FROM blog as b,blogcategories as c WHERE b.Category = c.id GROUP BY b.Category ORDER BY b.id desc

Filename: models/FlightModel.php

Line Number: 2078