Title: PLEASE HELP! What does this mean?
Last modified: August 18, 2016

---

# PLEASE HELP! What does this mean?

 *  [fashaddix](https://wordpress.org/support/users/fashaddix/)
 * (@fashaddix)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/)
 * <p align=”justify”>
 * </P>
 * 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 10′ at line 1]
   SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID = AND comment_approved
   = ‘1’ ORDER BY comment_date_gmt DESC LIMIT 10
 * Warning: Cannot modify header information – headers already sent by (output started
   at
    /home/fashaddi/public_html/wp-includes/wp-db.php:133) in /home/fashaddi/public_html/
   wp- includes/feed-rss2-comments.php on line 2 [http://fashaddix.com/?p=](http://fashaddix.com/?p=)
   Fashion & Lifestyle Tue, 21 Aug 2007 17:45:10 +0000 [http://wordpress.org/?v=2.2.2](http://wordpress.org/?v=2.2.2)

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

 *  [Joe Hall](https://wordpress.org/support/users/redbmedia/)
 * (@redbmedia)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610202)
 * Did you recently update or change either your theme or your /wp-admin files?
 *  Thread Starter [fashaddix](https://wordpress.org/support/users/fashaddix/)
 * (@fashaddix)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610203)
 * yes, i am trying to post advertisements so I post the html advertisement where
   the header is.
 * now i can write post but i cannot add images :/
 *  [Joe Hall](https://wordpress.org/support/users/redbmedia/)
 * (@redbmedia)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610206)
 * Did you replace code with the ad’s HTML? Or just paste it with in?
 *  Thread Starter [fashaddix](https://wordpress.org/support/users/fashaddix/)
 * (@fashaddix)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610246)
 * yes…I did both, delete it some of the content and also paste it. Does WordPress
   allow us to add advertisements?
 * Also, I delete it my profile 7 times today. And reinstalled it, and it still 
   gives me the same error message.
 * I contacted my hosting company, they said to look into my QSL folder and that’s
   all they could tell me they arent allow to help me… no one knows the answer.
 * So, what is the qsl folder? and why every time i uninstall and reintall from 
   scratch without posting the ads i still get the error message does it have to
   do with my domain?
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610252)
 * Use an old config file?
 *  [mrmist](https://wordpress.org/support/users/mrmist/)
 * (@mrmist)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610253)
 * Most likely the theme has a bug in it, probably in the functions.php but it could
   be anywhere. Essentially, this is wrong –
 *     ```
       SELECT wp_comments.* FROM wp_comments WHERE comment_post_ID =
       AND comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 10
       ```
   
 * Because no comment_post_id is being passed to the SQL code, so you send an invalid
   request to the database which breaks your page when the database sends an error
   back.
 * I do not know where that code is being formed though – it could be your theme
   or part of a plugin. Try changing the theme to the default to see if the error
   goes. If it does, put the theme back and then search through the theme files 
   to see if you can find the code. You’ll have to search for SELECT wp_comments.*
   FROM wp_comments WHERE comment_post_ID and see what comes after it.
 *  [Joe Hall](https://wordpress.org/support/users/redbmedia/)
 * (@redbmedia)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610287)
 * I think that you should reinstall your theme. If you are unable to reinstall 
   the theme then reinstall header.php this sounds like the file that you made the
   corrupt edits in. As a future word of caution: when adding custom HTML (like 
   ads and other things,) don’t delete pre-existing code that you don’t understand.
   If you see code that you don’t understand don’t touch it!
 *  Thread Starter [fashaddix](https://wordpress.org/support/users/fashaddix/)
 * (@fashaddix)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610314)
 * Thank you so much, you were all very helpful!

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

The topic ‘PLEASE HELP! What does this mean?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [fashaddix](https://wordpress.org/support/users/fashaddix/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/please-help-what-does-this-mean/#post-610314)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
