Title: SQL syntax errors after upgrading to 2.3
Last modified: August 18, 2016

---

# SQL syntax errors after upgrading to 2.3

 *  Resolved [richaro](https://wordpress.org/support/users/richaro/)
 * (@richaro)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/sql-syntax-errors-after-upgrading-to-23/)
 * Forgive me if this has been addressed – I found similar errors, but none that
   seemed to be the same to mine.
 * I upgraded to version 2.3.1 via Fantastico, and now am receiving errors. I can
   access my blog only without the www prefix at [http://the-f-word.org/blog/](http://the-f-word.org/blog/),
   but even then I see this 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 ‘221,220,219,218,217,216,215,214,213,212) ORDER BY post_id, meta_key’
   > at line 1]
   >  SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id
   > IN(,221,220,219,218,217,216,215,214,213,212) ORDER BY post
 * If I try to access my blog with the www. prefix at [http://www.the-f-word.org/blog/](http://www.the-f-word.org/blog/),
   I can’t see the blog at all, only this 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 ‘221,220,219,218,217,216,215,214,213,212) ORDER BY post_id, meta_key’
   > at line 1]
   >  SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id
   > IN(,221,220,219,218,217,216,215,214,213,212) ORDER BY post_id, meta_key
 * I seem to get the same error regardless of the theme I use. I contacted my website
   hosting support, and they say this is a WordPress error. Does anyone have any
   suggestions on how to fix the errors?
 * Thank you,
 * Rachel

Viewing 1 replies (of 1 total)

 *  Thread Starter [richaro](https://wordpress.org/support/users/richaro/)
 * (@richaro)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/sql-syntax-errors-after-upgrading-to-23/#post-648680)
 * Please disregard. I began deactivating plug-ins to pinpoint the problem, and 
   found that the sticky post plugin I installed to be the source of the problems.

Viewing 1 replies (of 1 total)

The topic ‘SQL syntax errors after upgrading to 2.3’ is closed to new replies.

## Tags

 * [SQL syntax](https://wordpress.org/support/topic-tag/sql-syntax/)
 * [WordPress database error](https://wordpress.org/support/topic-tag/wordpress-database-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [richaro](https://wordpress.org/support/users/richaro/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/sql-syntax-errors-after-upgrading-to-23/#post-648680)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
