Expression #28 of SELECT list is not in GROUP BY clause and contains nonaggregated column '' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_bySELECT * FROM articles a JOIN articles_sections asec ON = asec.article_id JOIN article_regions ar ON ar.article_id = WHERE section_id = 25 AND ar.region_id != '1' AND NOT IN (5041,5036,5017,4954) GROUP BY ORDER BY DESC LIMIT 4