wordpress database error
-
What exactly does this mean and how do i fix it?
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 ‘posts, wp_post2cat post2cat WHERE posts.ID <> 21 AND posts. (wp_’ at line 2]
SELECT DISTINCT posts.ID, posts.post_title, posts.post_date, posts.comment_count FROM (wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id)) posts, wp_post2cat post2cat WHERE posts.ID <> 21 AND posts. (wp_posts.post_status = ‘publish’ OR (wp_posts.post_status = ‘private’ AND (pl_wp_postmeta.meta_key = ‘post_level’ AND pl_wp_postmeta.meta_value <= 1 ))) AND posts.ID = post2cat.post_id AND post2cat.category_id IN(13,27) AND posts.post_date > 20060316195321 ORDER BY RAND() LIMIT 5
* No related posts found.
then is shows the contents of the post
- The topic ‘wordpress database error’ is closed to new replies.