Title: SQL Error in Post Preview on Edit page
Last modified: August 18, 2016

---

# SQL Error in Post Preview on Edit page

 *  [wheezyjoe](https://wordpress.org/support/users/wheezyjoe/)
 * (@wheezyjoe)
 * [22 years ago](https://wordpress.org/support/topic/sql-error-in-post-preview-on-edit-page/)
 * When I go back to a edit a saved post (in Advanced mode) and I look at the Preview,
   I see this text at the top:
    Database error: [You have an error in your SQL syntax
   near ” at line 1] SELECT post_content FROM wp_posts WHERE id= It doesn’t affect
   the live post, but I was wondering if anyone knows how to fix it.

Viewing 1 replies (of 1 total)

 *  [tecfreak](https://wordpress.org/support/users/tecfreak/)
 * (@tecfreak)
 * [22 years ago](https://wordpress.org/support/topic/sql-error-in-post-preview-on-edit-page/#post-58375)
 * I’m getting that same error

Viewing 1 replies (of 1 total)

The topic ‘SQL Error in Post Preview on Edit page’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [tecfreak](https://wordpress.org/support/users/tecfreak/)
 * Last activity: [22 years ago](https://wordpress.org/support/topic/sql-error-in-post-preview-on-edit-page/#post-58375)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
