Title: SQL Database errors
Last modified: August 21, 2016

---

# SQL Database errors

 *  [Deerholme](https://wordpress.org/support/users/deerholme/)
 * (@deerholme)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/sql-database-errors/)
 * In the last week, I have been unable to access my site “not found message” is
   diplayed on all the pages. My host (Bluehost) looked at the site and said it 
   was a wordpress database error. They suggested I ask the community for help. 
   I have the error message I received:
 * [11-Dec-2013 06:46:04 UTC] 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 ‘FROM wp_posts WHERE 1=1 ORDER BY wp_posts.post_date
   DESC’ at line 1 for query SELECT FROM wp_posts WHERE 1=1 ORDER BY wp_posts.post_date
   DESC made by require(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query-
   >query, WP_Query->get_posts
    [11-Dec-2013 06:46:06 UTC] PHP Warning: Parameter
   1 to ec3_filter_posts_where() expected to be a reference, value given in /home1/
   deerholm/public_html/wp-includes/plugin.php on line 256 [11-Dec-2013 06:46:06
   UTC] PHP Warning: Parameter 1 to ec3_filter_posts_join() expected to be a reference,
   value given in /home1/deerholm/public_html/wp-includes/plugin.php on line 256[
   11-Dec-2013 06:46:06 UTC] PHP Warning: Parameter 1 to ec3_filter_posts_groupby()
   expected to be a reference, value given in /home1/deerholm/public_html/wp-includes/
   plugin.php on line 256 [11-Dec-2013 06:46:06 UTC] PHP Warning: Parameter 1 to
   ec3_filter_posts_fields() expected to be a reference, value given in /home1/deerholm/
   public_html/wp-includes/plugin.php on line 256 [11-Dec-2013 06:46:06 UTC] 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 ‘FROM wp_posts 
   WHERE 1=1 ORDER BY wp_posts.post_date DESC’ at line 1 for query SELECT FROM wp_posts
   WHERE 1=1 ORDER BY wp_posts.post_date DESC made by require(‘wp-blog-header.php’),
   wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
 * [http://www.deerholme.com](http://www.deerholme.com)
 * Any suggestions??
 * Thanks

Viewing 1 replies (of 1 total)

 *  [Krishna](https://wordpress.org/support/users/1nexus/)
 * (@1nexus)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/sql-database-errors/#post-4400265)
 * Deactivate all plugins and see if the error persists. If it persists, update 
   WordPress to the latest version as you are still running version 3.7 – see: [http://www.deerholme.com/readme.html](http://www.deerholme.com/readme.html)

Viewing 1 replies (of 1 total)

The topic ‘SQL Database errors’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Krishna](https://wordpress.org/support/users/1nexus/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/sql-database-errors/#post-4400265)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
