• <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= Fashion & Lifestyle Tue,
    21 Aug 2007 17:45:10 +0000 http://wordpress.org/?v=2.2.2

Viewing 8 replies - 1 through 8 (of 8 total)
  • Did you recently update or change either your theme or your /wp-admin files?

    Thread Starter fashaddix

    (@fashaddix)

    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 :/

    Did you replace code with the ad’s HTML? Or just paste it with in?

    Thread Starter fashaddix

    (@fashaddix)

    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?

    Use an old config file?

    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.

    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

    (@fashaddix)

    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.