Title: SQL Error
Last modified: August 19, 2016

---

# SQL Error

 *  [pdp](https://wordpress.org/support/users/pdp/)
 * (@pdp)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/sql-error-6/)
 * When we access a resource such as
 * [http://www.blog.com/index.php/page/%5Bwhatever%5D/feed](http://www.blog.com/index.php/page/%5Bwhatever%5D/feed)
 * The following SQL error is generated:
 * 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 for query SELECT
   wp_comments.* FROM wp_comments WHERE comment_post_ID = AND comment_approved =‘
   1’ ORDER BY comment_date_gmt DESC LIMIT 20
 * Go figure it out! I did.

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

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 0 replies
 * 1 participant
 * Last reply from: [pdp](https://wordpress.org/support/users/pdp/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/sql-error-6/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
