Title: Links Database Error
Last modified: August 18, 2016

---

# Links Database Error

 *  [indigogypsy](https://wordpress.org/support/users/indigogypsy/)
 * (@indigogypsy)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/links-database-error/)
 * I upgraded to the new WordPress, and I receive all sorts of errors regarding 
   links and categories, such as (in my sidebar): WordPress 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 ” at line 1]
    SELECT cat_id, 
   cat_name FROM
 * On the “Blogroll” page: WordPress database error: [Unknown column ‘link_count’
   in ‘where clause’]
    SELECT cat_ID FROM wp_categories WHERE category_parent = 
   0 AND ( category_count = 0 OR link_count != 0 OR ( link_count = 0 AND category_count
   = 0 ) ) ORDER BY link_count DESC
 * Any ideas? Sorry, I’m not advanced enough to be able to figure out what this 
   all means.

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

 *  [drmike](https://wordpress.org/support/users/drmike/)
 * (@drmike)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/links-database-error/#post-529003)
 * YOu may want to do a search for the error. It’s been discussed many times over
   already. Also check with your theme designer to see if he or she has released
   an updated version of your theme.
 *  Thread Starter [indigogypsy](https://wordpress.org/support/users/indigogypsy/)
 * (@indigogypsy)
 * [19 years, 3 months ago](https://wordpress.org/support/topic/links-database-error/#post-529022)
 * Thank you, but it’s not my theme. Even changing to a different theme is a problem.
   I get errors in the Blogroll Categories, as well, that say:
 * WordPress database error: [Table ‘yvonne_db.wp_link2cat’ doesn’t exist]
    SELECT
   category_id FROM wp_link2cat WHERE link_id = 32 ORDER BY category_id
 * Going there and trying to “fix” it, I get an error when I try to add a category
   that says: Something strange happened. Try refreshing the page. I believe that
   this has completely screwed up my database, unfortunately. Any suggestions?
 * Thank you all very much.

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

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

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
