Title: SQL problem with comments
Last modified: August 18, 2016

---

# SQL problem with comments

 *  [carminecoyote](https://wordpress.org/support/users/carminecoyote/)
 * (@carminecoyote)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/sql-problem-with-comments/)
 * The following message has suddenly begun to appear along with the comments on
   my blog.
 * 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‘
   select comment_author_email from wp_comments where comment_ID =]
    select count(*)
   as comments from wp_comments where comment_author_email = (select comment_author_email
   from wp_comments where comment_ID = 94)
 * Can anyone please tell me how to correct the problem?

Viewing 1 replies (of 1 total)

 *  [Beau Lebens](https://wordpress.org/support/users/beaulebens/)
 * (@beaulebens)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/sql-problem-with-comments/#post-615821)
 * Is it remotely possible that your MySQL database was down-graded? That looks 
   like a problem with an older version of MySQL (4.x?) that didn’t support sub-
   SELECTs.
 * Beau

Viewing 1 replies (of 1 total)

The topic ‘SQL problem with comments’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [WordPress database error](https://wordpress.org/support/topic-tag/wordpress-database-error/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 1 reply
 * 2 participants
 * Last reply from: [Beau Lebens](https://wordpress.org/support/users/beaulebens/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/sql-problem-with-comments/#post-615821)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
