It sounds great. I would like to implement it, but I’m getting this error. I was wondering if I could get some help. Thanks a lot!
WordPress database error: [You have an error in your SQL syntax near ‘AND post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR’ at line 1]
SELECT DISTINCT YEAR(post_date) AS year, MONTH(post_date) AS month, count(ID) as posts FROM wp_posts, wp_post2cat WHERE post_date < ‘2006-06-18 17:37:11’ AND category_id = AND post_date != ‘0000-00-00 00:00:00’ AND post_status = ‘publish’ GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC