The error log in my blog is growing because of the following error message:
[19-Sep-2010 13:16:06] 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 ‘WHERE post_status = ‘publish’ AND post_type = ‘post’ AND ID != 2682 ORDER BY RAN’ at line 1 for query SELECT ID, post_title, post_date, comment_count FROM WHERE post_status = ‘publish’ AND post_type = ‘post’ AND ID != 2682 ORDER BY RAND() LIMIT 5 made by require, require_once, do_feed, do_action, call_user_func_array, do_feed_rss2, load_template, require_once, the_content_feed, get_the_content_feed, apply_filters, call_user_func_array, wp_related_posts_for_feed, wp_get_related_posts, wp_get_random_posts, W3_Db->query
What could be causing this error message? I suspect it’s a plugin, but I just can’t pinpoint which one because I hardly know MySQL.
Any help would be hot.
- The topic ‘WordPress database error: Error in SQL syntax’ is closed to new replies.