Title: Database error
Last modified: August 19, 2016

---

# Database error

 *  Resolved [Andrew Ledwith](https://wordpress.org/support/users/jaledwith/)
 * (@jaledwith)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-18/)
 * I’ve been getting this error when I post on my blog.
 * > WordPress database error: [Table ‘jaledwit_wrdp1.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 ‘jaledwit_wrdp1.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 /home/jaledwit/public_html/wordpress/wp-includes/wp-db.php:216) 
   > in /home/jaledwit/public_html/wordpress/wp-includes/pluggable.php on line 689
 * This is not a 2.5 issue, since it was giving me this problem in 2.3.3. Can someone
   help me out?
 * Andrew
    jaledwith.com

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

 *  [Len](https://wordpress.org/support/users/lenk/)
 * (@lenk)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-18/#post-725747)
 * post2cat (as well as link2cat and categories) were dropped as of 2.3 in favour
   of term_relationship & term_taxonomy. Something is calling it, probably an outdated
   plugin.
 *  Thread Starter [Andrew Ledwith](https://wordpress.org/support/users/jaledwith/)
 * (@jaledwith)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-18/#post-725838)
 * Interesting. Thanks for the knowledge.
 *  Thread Starter [Andrew Ledwith](https://wordpress.org/support/users/jaledwith/)
 * (@jaledwith)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-18/#post-725896)
 * Okay, found the screwy plugin. Thanks again.

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Andrew Ledwith](https://wordpress.org/support/users/jaledwith/)
 * Last activity: [18 years, 1 month ago](https://wordpress.org/support/topic/database-error-18/#post-725896)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
