Title: WordPress 2.5.1 Database error &#8211; wordpress.wp_post2cat
Last modified: August 19, 2016

---

# WordPress 2.5.1 Database error – wordpress.wp_post2cat

 *  [texbiker](https://wordpress.org/support/users/texbiker/)
 * (@texbiker)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/wordpress-251-database-error-wordpresswp_post2cat/)
 * In the last few days I started getting these database errors whenever I write
   a new post. The post is added to the database and appears on my blog. I tried
   deactivating my plugins but the error still happens. I get the first notice while
   I am writing the post and the second one when I publish the post. Any ideas on
   how to fix this?
    Error #1 WordPress database error: [Table ‘texbiker_net_-_wordpress.
   wp_post2cat’ doesn’t exist] SELECT cat_ID AS ID, MAX(post_modified) AS last_mod
   FROM `wp_posts` p LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id LEFT JOIN `
   wp_categories` 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 /var/www/html/blog/wp-includes/wp-db.php:216) in /var/www/html/blog/wp-includes/
   classes.php on line 788
 * Error #2
    WordPress database error: [Table ‘texbiker_net_-_wordpress.wp_post2cat’
   doesn’t exist] SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM `wp_posts`
   p LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id LEFT JOIN `wp_categories` c
   ON pc.category_id = c.cat_ID WHERE post_status = ‘publish’ GROUP BY cat_ID
 * WordPress database error: [Table ‘texbiker_net_-_wordpress.wp_post2cat’ doesn’t
   exist]
    SELECT cat_ID AS ID, MAX(post_modified) AS last_mod FROM `wp_posts` p
   LEFT JOIN `wp_post2cat` pc ON p.ID = pc.post_id LEFT JOIN `wp_categories` 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 /var/www/html/blog/wp-includes/wp-db.php:216) in /var/www/html/blog/wp-includes/
   pluggable.php on line 694

Viewing 1 replies (of 1 total)

 *  Thread Starter [texbiker](https://wordpress.org/support/users/texbiker/)
 * (@texbiker)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/wordpress-251-database-error-wordpresswp_post2cat/#post-759959)
 * Found the solution: I updated the Google Sitemap plugin to the newest version.

Viewing 1 replies (of 1 total)

The topic ‘WordPress 2.5.1 Database error – wordpress.wp_post2cat’ 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/)
 * 1 reply
 * 1 participant
 * Last reply from: [texbiker](https://wordpress.org/support/users/texbiker/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/wordpress-251-database-error-wordpresswp_post2cat/#post-759959)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
