Expression #28 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'familybu_new.ar.region_id' 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 a.id = asec.article_id JOIN article_regions ar ON ar.article_id = a.id WHERE section_id = 25 AND ar.region_id != '1' AND a.id NOT IN (5041,5036,5017,4954) GROUP BY a.id ORDER BY a.id DESC LIMIT 4