Title: RSS Feed error in PHP or in database query?
Last modified: August 18, 2016

---

# RSS Feed error in PHP or in database query?

 *  [dobovedo](https://wordpress.org/support/users/dobovedo/)
 * (@dobovedo)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/rss-feed-error-in-php-or-in-database/)
 * I get the following errors (see below) when I try to use RSS from my site: [http://dobovedo.com/?feed=rss2](http://dobovedo.com/?feed=rss2)
 * Oddly enough… the page loads fine if www. is added into the URL. However… I suspect
   this is causing errors with Google, MyYahoo! and Bloglines, all of which report
   that the file can’t be found or have a title but no entries.
 * The suspected problem area reported by feedvalidator is a leading space before
   the call for current date/time, but I don’t know how to fix it.
 *     ```
       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 'SELECT ID FROM wp_posts INNER JOIN wp_post2cat ON ( wp_posts.ID]
       SELECT DISTINCT * FROM vedowp_posts WHERE 1=1 AND 0=1 AND post_date_gmt <= '2007-06-27 06:55:59' AND (post_status = "publish") AND post_status != "attachment" AND ID NOT IN ( SELECT ID FROM wp_posts INNER JOIN wp_post2cat ON ( wp_posts.ID = wp_post2cat.post_ID ) WHERE 0 = 1 OR vedowp_post2cat.category_id = 7 OR vedowp_post2cat.category_id = 8) GROUP BY vedowp_posts.ID ORDER BY post_date DESC LIMIT 0, 10
   
       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 'SELECT ID FROM wp_posts INNER JOIN wp_post2cat ON ( wp_posts.ID]
       SELECT DISTINCT * FROM vedowp_posts WHERE 1=1 AND post_date_gmt <= '2007-06-27 06:55:59' AND (post_status = "publish") AND post_status != "attachment" AND ID NOT IN ( SELECT ID FROM wp_posts INNER JOIN wp_post2cat ON ( wp_posts.ID = wp_post2cat.post_ID ) WHERE 0 = 1 OR vedowp_post2cat.category_id = 7 OR vedowp_post2cat.category_id = 8) GROUP BY vedowp_posts.ID ORDER BY post_date DESC LIMIT 0, 10
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/dobovedo/www/www/wp-includes/wp-db.php:102) in /home/dobovedo/www/www/wp-rss2.php on line 8
       http://www.dobovedo.com a place to document in mind-numbingly boring and excruciatingly painful detail something as basic as riding a bike Wed, 27 Jun 2007 06:38:01 +0000 http://wordpress.org/?v=2.0.2 en
       ```
   

The topic ‘RSS Feed error in PHP or in database query?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dobovedo](https://wordpress.org/support/users/dobovedo/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/rss-feed-error-in-php-or-in-database/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
