Title: Database Issue
Last modified: August 18, 2016

---

# Database Issue

 *  [dcote24](https://wordpress.org/support/users/dcote24/)
 * (@dcote24)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/database-issue-1/)
 * Everything is working fine except for the fact that I receive this error when
   I save or publish a post:
 * **WordPress database error: [Unknown column ‘pc.post_id’ in ‘on clause’]
    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: [Unknown column ‘pc.post_id’ in ‘on clause’]
    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
 * Thanks in advance for your help.
 * -Dave

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

 *  [Jeremy Clark](https://wordpress.org/support/users/jeremyclark13/)
 * (@jeremyclark13)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/database-issue-1/#post-649202)
 * See this sticky.
    [http://wordpress.org/support/topic/135564?replies=76](http://wordpress.org/support/topic/135564?replies=76)
 *  Thread Starter [dcote24](https://wordpress.org/support/users/dcote24/)
 * (@dcote24)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/database-issue-1/#post-649230)
 * Thanks, Jeremy! That did the trick…
 * -Dave

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [dcote24](https://wordpress.org/support/users/dcote24/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/database-issue-1/#post-649230)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
