Title: WordPress database error
Last modified: August 18, 2016

---

# WordPress database error

 *  [tuxvix](https://wordpress.org/support/users/tuxvix/)
 * (@tuxvix)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/wordpress-database-error-8/)
 * When I login as an admin on my blog, I get following error:
 * `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 (post_type = 'post' AND (post_status = 'publish' OR post_status = 'future'
   O' at line 1]
    SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 
   AND ID = wp-admin/ AND (post_type = 'post' AND (post_status = 'publish' OR post_status
   = 'future' OR post_status = 'draft' OR post_status = 'private')) ORDER BY post_date
   DESC LIMIT 0, 3\`
 * Please help, thank you!

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

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
