WordPress.org

Ready to get started?Download WordPress

Forums

WordPress database error: Error in SQL syntax (3 posts)

  1. jhayrocas
    Member
    Posted 3 years ago #

    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.

  2. mrmist
    Forum Janitor
    Posted 3 years ago #

    Turn off the plugins one by one, that'll soon pinpoint it.

  3. jhayrocas
    Member
    Posted 3 years ago #

    I created a clone of my blog on a sandbox. With all the active plugins active in the clone blog as well.

    No error log containing the same message is being created in the clone blog.

Topic Closed

This topic has been closed to new replies.

About this Topic