WordPress database error: [Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'ambertat_sims.wp_enposts.post_date' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by]
SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM wp_enposts WHERE post_date < '2017-09-22 02:37:51' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC

Contact

Before you write…

Before you contact me with a Question, please Read our FAQ, and search our Forums.  This way your Question might be answered faster.

Contact

When your Question isn’t answered in the Forums or the FAQ, and you don’t want to ask in public for some reason, you can send me an eMail.  Make sure that the Subject contains the word SimPE somewhere, otherwise your message might get deleted by my Spam Filter.