WordPress database error: (1 post)

  1. bizlawnews
    Posted 3 years ago #

    I am getting this error message when I save or update material. How do I correct this?

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY YEAR(post_date_gmt),MONTH(post_date_gmt)' at line 1]
    SELECT DISTINCT YEAR(post_date_gmt) AS year, MONTH(post_date_gmt) AS month, MAX(post_date_gmt) as last_mod, count(ID) as posts FROM wp_posts WHERE post_date < '2013-01-26 00:48:35' AND post_status = 'publish' AND post_type = 'post' ORDER BY post_date_gmt DESC GROUP BY YEAR(post_date_gmt),MONTH(post_date_gmt)

Topic Closed

This topic has been closed to new replies.

About this Topic