Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'walayatf_waldb.zk_stories.pn_from' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by SELECT pn_from FROM zk_stories WHERE (pn_from < '2024-11-21 07:24:09' AND pn_published_status = '0') GROUP BY EXTRACT(YEAR_MONTH FROM pn_from) ORDER BY pn_from DESC Archive :: WalayatFamily.com