Small problem, anyone able to help?
-
When I edit a wordpress post or page I get the following error, however it still publishes the post without any problems, it’s just annoying to see this error each time.
Anyone have any ideas on how to solve 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 ‘AND p2c.category_id <> 2 AND p2c.category_id <> 5 AND p2c.category_id <> 12 A’ at line 5]
SELECT DISTINCT MONTH(p.post_date) ASmonth
FROM wp_posts p INNER JOIN wp_post2cat p2c ON (p.ID = p2c.post_id ) WHERE YEAR(p.post_date) = AND p2c.category_id <> 2 AND p2c.category_id <> 5 AND p2c.category_id <> 12 AND p2c.category_id <> 16 AND p2c.category_id <> 18 AND p.post_date_gmt < ‘2007-10-15 09:09:26’ ORDER By p.post_date DESC
- The topic ‘Small problem, anyone able to help?’ is closed to new replies.