Title: SQL Error
Last modified: August 19, 2016

---

# SQL Error

 *  [fooddude](https://wordpress.org/support/users/fooddude/)
 * (@fooddude)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/sql-error-5/)
 * The following error is popping up in my error log over the last few weeks:
 * 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 DESC LIMIT 1′ at line 1 for 
   query SELECT comment_date FROM wp_comments WHERE comment_date > FROM_UNIXTIME(
   1201144312) AND comment_post_ID = AND comment_approved = ‘1’ ORDER BY comment_date
   DESC LIMIT 1
 * I’ve disabled all plugins, but it hasn’t helped. Anyone have any ideas?

Viewing 1 replies (of 1 total)

 *  [xjessie007yahoocom](https://wordpress.org/support/users/xjessie007yahoocom/)
 * (@xjessie007yahoocom)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/sql-error-5/#post-693446)
 * Can you, pls, post the whole SQL statement here? Just the error does not tell
   the whole story as it is missing a lot of information.
 * __________________
    **[signature moderated** Please read the [Forum Rules](http://wordpress.org/support/topic/68664?replies=6)]

Viewing 1 replies (of 1 total)

The topic ‘SQL Error’ is closed to new replies.

## Tags

 * [sql-error](https://wordpress.org/support/topic-tag/sql-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [xjessie007yahoocom](https://wordpress.org/support/users/xjessie007yahoocom/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/sql-error-5/#post-693446)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
