Title: WordPress SQL Error, on the feed
Last modified: August 18, 2016

---

# WordPress SQL Error, on the feed

 *  [soychuy](https://wordpress.org/support/users/jesusbet/)
 * (@jesusbet)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/)
 * hi guys… I have a problem and I’d be appreciated if you help me… thanks, this
   is the problem…
 * WordPress database error: [You have an error in your SQL syntax near ” at line
   1]
    SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt <= ‘2005-03-01
   05:02:59’ AND (post_status = “publish”) GROUP BY wp_posts.ID ORDER BY post_date
   DESC LIMIT 0,

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-157483)
 * De-activate all active plugins and check it again.
 *  Thread Starter [soychuy](https://wordpress.org/support/users/jesusbet/)
 * (@jesusbet)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-157590)
 * no… it didn’t worked :'(
 * thanks…
 *  Thread Starter [soychuy](https://wordpress.org/support/users/jesusbet/)
 * (@jesusbet)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-157595)
 * this is other error:
    Warning: Cannot modify header information – headers already
   sent by (output started at /home/httpd/vhosts/jesusbet.net/httpdocs/blog/wp-includes/
   wp-db.php:98) in /home/httpd/vhosts/jesusbet.net/httpdocs/blog/wp-rss2.php on
   line 10 [http://jesusbet.net/blog](http://jesusbet.net/blog) where lines that
   I couldn’t change… I was lost, oh yeah… Tue, 01 Mar 2005 04:50:44 +0000 [http://wordpress.org/?v=1.5](http://wordpress.org/?v=1.5)
 *  [ColdForged](https://wordpress.org/support/users/coldforged/)
 * (@coldforged)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-157599)
 * Go to your “Reading” tab of the options and make certain that you have a valid
   number set for “Show the most recent: posts” field.
 *  [ColdForged](https://wordpress.org/support/users/coldforged/)
 * (@coldforged)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-157600)
 * Under the “Syndication Feeds” subheading, by the way.
 *  Thread Starter [soychuy](https://wordpress.org/support/users/jesusbet/)
 * (@jesusbet)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-157601)
 * jo jo.. you’re great guys…
 * thanks a lot…
 *  [butterfly](https://wordpress.org/support/users/butterfly/)
 * (@butterfly)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-158186)
 * Thanks a lot, too!!!
    It ‘ s been such a pain in the neck to figure this out!!
   You saved my Sunday!!

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

The topic ‘WordPress SQL Error, on the feed’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [butterfly](https://wordpress.org/support/users/butterfly/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/wordpress-sql-error-on-the-feed/#post-158186)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
