Title: Comment SQL error
Last modified: August 18, 2016

---

# Comment SQL error

 *  [martytdx](https://wordpress.org/support/users/martytdx/)
 * (@martytdx)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/comment-sql-error/)
 * I hope someone knows the answer to this. I tried searching but haven’t found 
   a duplicate yet.
 * Whenever someone tries to leave a comment at my site, they get a long series 
   of errors:
 * `
    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 'WHERE comment_ID = 506' at line 1] UPDATE wp_comments SET comment_reply_ID
   = WHERE comment_ID = 506;
 * Warning: Cannot modify header information - headers already sent by (output started
   at /home/martytdx/public_html/zealot/wp-includes/wp-db.php:98) in /home/martytdx/
   public_html/zealot/wp-comments-post.php on line 51
 * Warning: Cannot modify header information - headers already sent by (output started
   at /home/martytdx/public_html/zealot/wp-includes/wp-db.php:98) in /home/martytdx/
   public_html/zealot/wp-comments-post.php on line 52
 * Warning: Cannot modify header information - headers already sent by (output started
   at /home/martytdx/public_html/zealot/wp-includes/wp-db.php:98) in /home/martytdx/
   public_html/zealot/wp-comments-post.php on line 53 ...
 * ...
    Warning: Cannot modify header information - headers already sent by (output
   started at /home/martytdx/public_html/zealot/wp-includes/wp-db.php:98) in /home/
   martytdx/public_html/zealot/wp-comments-post.php on line 58
 * Warning: Cannot modify header information - headers already sent by (output started
   at /home/martytdx/public_html/zealot/wp-includes/wp-db.php:98) in /home/martytdx/
   public_html/zealot/wp-includes/pluggable-functions.php on line 129
 * Anyone seen something similar and know how to fix it? I tried the Zend Optimizer
   fix someone suggested, but the errors are still there. The Blog is at [http://www.martytdx.com/zealot](http://www.martytdx.com/zealot).
   
   Any help would be greatly appreciated!
 * Marty

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/comment-sql-error/#post-240790)
 * What plugins that could impact on comments are active ?
 *  Thread Starter [martytdx](https://wordpress.org/support/users/martytdx/)
 * (@martytdx)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/comment-sql-error/#post-240818)
 * I have **Brian’s Threaded Comments** and **Brian’s Latest Comments** both running.
 *  Thread Starter [martytdx](https://wordpress.org/support/users/martytdx/)
 * (@martytdx)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/comment-sql-error/#post-241449)
 * Turns out that it was Brian’s Threaded Comments causing the problem, although
   I’m not sure why. He’s helping me try to work through it.

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

The topic ‘Comment SQL error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [martytdx](https://wordpress.org/support/users/martytdx/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/comment-sql-error/#post-241449)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
