Title: Write POst Database error
Last modified: August 18, 2016

---

# Write POst Database error

 *  [spiderglow](https://wordpress.org/support/users/spiderglow/)
 * (@spiderglow)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/write-post-database-error/)
 * Thanks for your time and concern.
 * Please help, on my site [http://www.spiderglow.com](http://www.spiderglow.com)
 * I have the foolowing error on the write post page of the Dashboard
 * 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” at line 1]
    SELECT COUNT(comment_ID) FROM wp_comments
   WHERE comment_post_ID = AND comment_approved = ‘1’; Regalanos un comentario Edit
   This
 * GeneralDigg this storyAdd to Del.icio.us
 * What should I do to correct it???
 * Thanks for your time and concern.

Viewing 1 replies (of 1 total)

 *  [webgrrl](https://wordpress.org/support/users/webgrrl/)
 * (@webgrrl)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/write-post-database-error/#post-380969)
 * hey i got the same problem right now.. did u fix it? heelp!
 * mine error :
 * ################
    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” at line 1] SELECT COUNT(comment_ID)
   FROM wp_comments WHERE comment_post_ID = AND comment_approved = ‘1’; ###############

Viewing 1 replies (of 1 total)

The topic ‘Write POst Database error’ is closed to new replies.

## Tags

 * [dashboard](https://wordpress.org/support/topic-tag/dashboard/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [webgrrl](https://wordpress.org/support/users/webgrrl/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/write-post-database-error/#post-380969)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
