Title: Database trouble
Last modified: August 18, 2016

---

# Database trouble

 *  [monkeywrench](https://wordpress.org/support/users/monkeywrench/)
 * (@monkeywrench)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/database-trouble-1/)
 * Been running fine for a couple of weeks. Added a new category today and got this:
   
   Database error: [You have an error in your SQL syntax. Check the manual that 
   corresponds to your MySQL server version for the right syntax to use near ‘ WHERE.
   category_id = cat_ID AND .post_id = ’81” ] SELECT category_id, cat_name, category_nicename,
   category_description, category_parent FROM , WHERE .category_id = cat_ID AND .
   post_id = ’81’ Uncategorized â€? site admin @ 5:45 pm Any advice?

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

 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/database-trouble-1/#post-96572)
 * Have you upgraded recently? If you did, did you remember to run wp-admin/upgrade.
   php?
 *  Thread Starter [monkeywrench](https://wordpress.org/support/users/monkeywrench/)
 * (@monkeywrench)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/database-trouble-1/#post-96578)
 * No, haven’t upgraded. However, a couple of weeks ago I ran into a problem trying
   to use a category_id tag of some kind. In searching around the boards here, I
   found that that feature is buggy in the version I’m using (1.2) and that it had
   been fixed in some new version. Sorry this is so vague, but I can’t remember 
   exactly what I did. Anyway, I found reference to upgrading some particular file
   and did that. Everything’s been running fine. Perhaps I need to do a fresh, full
   upgrade of some kind?
    And are there instructions around for upgrading?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/database-trouble-1/#post-96579)
 * Upgrading:
    [http://faq.wordpress.net/view.php?p=30](http://faq.wordpress.net/view.php?p=30)

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [Mark (podz)](https://wordpress.org/support/users/podz/)
 * Last activity: [21 years, 8 months ago](https://wordpress.org/support/topic/database-trouble-1/#post-96579)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
