Title: Comments: WordPress database error
Last modified: August 18, 2016

---

# Comments: WordPress database error

 *  [brianpurkiss](https://wordpress.org/support/users/brianpurkiss/)
 * (@brianpurkiss)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/comments-wordpress-database-error-1/)
 * Right now, I have two blogs: [plainbeta](http://plainbeta.com/) and [brian.purkiss:blog](http://brianpurkiss.net/blog/).(
   I just recently started the second one)
 * I just recently started getting an error on my single post pages and on the sidebar
   with the comments.
 * > 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 = 176)
 * I have had <u>plainbeta</u> for a while, and have never had this problem before.
   
   I am operating with the latest version of WordPress, using 1and1.com hosting,
   and running MySQL 4.0. Furthermore, my theme is a well designed theme by [Small Potato of WPdesigner.com](http://www.wpdesigner.com/)–
   so I doubt it’s the theme.
 * Does anyone know what’s going on?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/comments-wordpress-database-error-1/#post-637211)
 * Whatever you are using to display the recent comments… it’s either not compatible
   with your WP version or has a faulty code.
 *  Thread Starter [brianpurkiss](https://wordpress.org/support/users/brianpurkiss/)
 * (@brianpurkiss)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/comments-wordpress-database-error-1/#post-637214)
 * Ok!
    … Do you have any idea how I could fix that?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/comments-wordpress-database-error-1/#post-637216)
 * No, because I don’t know your versions and I don’t know what are you using to
   display the recent comments…
    If you don’t provide details why are you expecting
   any meaningful answer?
 *  Thread Starter [brianpurkiss](https://wordpress.org/support/users/brianpurkiss/)
 * (@brianpurkiss)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/comments-wordpress-database-error-1/#post-637230)
 * I don’t provide details because I don’t know what the details entail.
    I don’t
   know much about WP themes – that’s why I’m here.
 * If you want more details, let me know what you want and I’ll be more than happy
   to share them with you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Comments: WordPress database error’ is closed to new replies.

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [database](https://wordpress.org/support/topic-tag/database/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [brianpurkiss](https://wordpress.org/support/users/brianpurkiss/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/comments-wordpress-database-error-1/#post-637230)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
