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

---

# WordPress database error

 *  Resolved [awesty](https://wordpress.org/support/users/awesty/)
 * (@awesty)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wordpress-database-error-13/)
 * I have just upgraded to 2.3 but when I try to publish or save a post I get this
   error:
 *     ```
       WordPress database error: [Table 'wordp.wp_post2cat' doesn't exist]
       SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM <code>wp_posts</code> p LEFT JOIN <code>wp_post2cat</code> pc ON p.ID = pc.post_id LEFT JOIN <code>wp_categories</code> c ON pc.category_id = c.cat_ID WHERE post_status = 'publish' GROUP BY cat_ID
   
       Warning: Cannot modify header information - headers already sent by (output started at /home/******/******/******/wp-includes/wp-db.php:160) in /home/******/******/******/wp-includes/pluggable.php on line 390
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [justinratwebtek](https://wordpress.org/support/users/justinratwebtek/)
 * (@justinratwebtek)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wordpress-database-error-13/#post-642078)
 * Have you checked to make sure the DB has wordp.wp_post2cat in it? Something may
   have happened during the Upgrade…
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wordpress-database-error-13/#post-642085)
 * The table wp_post2cat no longer exists in WordPress 2.3.
 * Please review this thread:
    [http://wordpress.org/support/topic/135564?replies=70](http://wordpress.org/support/topic/135564?replies=70)
 * Essentially you have a theme or a plugin that is not 2.3 compatible.
 *  Thread Starter [awesty](https://wordpress.org/support/users/awesty/)
 * (@awesty)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wordpress-database-error-13/#post-642169)
 * Okay, thanks. It turns out i wasn’t using the latest version of Google Sitemaps.

Viewing 3 replies - 1 through 3 (of 3 total)

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [awesty](https://wordpress.org/support/users/awesty/)
 * Last activity: [18 years, 7 months ago](https://wordpress.org/support/topic/wordpress-database-error-13/#post-642169)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
