Title: Database error after upgrade
Last modified: August 18, 2016

---

# Database error after upgrade

 *  [Antoinette](https://wordpress.org/support/users/antoinette/)
 * (@antoinette)
 * [19 years ago](https://wordpress.org/support/topic/database-error-after-upgrade-1/)
 * Hi,
    Yesterday I upgraded to WP 2.1.3 and changed my database to PHP5. I get 
   this message under every post: WordPress database error: [Unknown column ‘user_level’
   in ‘where clause’] SELECT COUNT(*) FROM wp_users WHERE user_level > 2
 * I also lost the pictures in my post (not in the pages). I’ve copied them all 
   to wp-content.
 * Can someone please help? It’s to save the elephants!!
    [http://www.bring-the-elephant-home.nl/index.php](http://www.bring-the-elephant-home.nl/index.php)
   Thanks!!

The topic ‘Database error after upgrade’ is closed to new replies.

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
