Title: WordPress data base error
Last modified: August 18, 2016

---

# WordPress data base error

 *  [wonderla](https://wordpress.org/support/users/wonderla/)
 * (@wonderla)
 * [19 years ago](https://wordpress.org/support/topic/wordpress-data-base-error-2/)
 * Every thing was fine. The only thing I have done over the last twenty four is
   upload a couple of themes and the one I was experimenting with was working fine.
   I then delteted it but nothing else, the only files I was playing with were theme
   files.
 * Not at the top of my blog no matter which theme I choose I have this.
 * _
    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 ‘) ORDER BY post\_date DESC LIMIT 0, 1’ at line 1] SELECT SQL\_CALC\
   _FOUND\_ROWS DISTINCT wp\_posts.* FROM wp\_posts LEFT JOIN wp\_post2cat ON ( 
   wp\_posts.ID = wp\_post2cat.post\_id) WHERE 1=1 AND (post\_type = ‘post’ AND (
   post\_status = ‘publish’ OR post\_status = ‘private’)) AND category\_id NOT IN()
   ORDER BY post\_date DESC LIMIT 0, 1″
 * I under stand what it says but have no idea as to why all of a sudden it happened
   and have no idea how to fix it.
 * Any thought?

The topic ‘WordPress data base error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [wonderla](https://wordpress.org/support/users/wonderla/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/wordpress-data-base-error-2/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
