WordPress.org

Ready to get started?Download WordPress

Forums

page returning invalid sql statement (1 post)

  1. melquist
    Member
    Posted 7 years ago #

    I have a page that is returning an invalid sql statement, and I can't figure out why:

    SELECT COUNT(comment_ID) FROM wp_comments WHERE comment_post_ID = AND comment_approved = '1';

    Can someone tell me why there is no comment_post_id being returned?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic