WordPress.org

Ready to get started?Download WordPress

Forums

You have an error in your SQL syntax (2 posts)

  1. joandajer
    Member
    Posted 6 years ago #

    I am getting the following error log in my hosting panel:

    [21-Mar-2008 13:14:59] 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 comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 10' at line 1 for query SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = AND comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 10

    This is pretty annoying and i want to know if someone was able to solve it. I have search on the web and no one has a response.

    HELP!!!

  2. jandrew
    Member
    Posted 6 years ago #

    >>comment_post_ID = AND<<

    There is no value given for comment_post_ID

    Cheers,
    John

Topic Closed

This topic has been closed to new replies.

About this Topic