Title: Database Error
Last modified: August 19, 2016

---

# Database Error

 *  [ninerniner](https://wordpress.org/support/users/ninerniner/)
 * (@ninerniner)
 * [18 years ago](https://wordpress.org/support/topic/database-error-19/)
 * I get this error when I moderate comments as spam.
 * WordPress database error: [Table ‘class_wp.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

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years ago](https://wordpress.org/support/topic/database-error-19/#post-751476)
 * And what WP version do you have?
 *  Thread Starter [ninerniner](https://wordpress.org/support/users/ninerniner/)
 * (@ninerniner)
 * [18 years ago](https://wordpress.org/support/topic/database-error-19/#post-751482)
 * 2.3.1
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years ago](https://wordpress.org/support/topic/database-error-19/#post-751488)
 * Then you are using some theme and/or plugin that is not compatible with your 
   WP version.
    Some reading: [WordPress_Taxonomy](http://codex.wordpress.org/WordPress_Taxonomy)

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/database-error-19/#post-751488)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
