Title: MySql Data Base Error
Last modified: August 19, 2016

---

# MySql Data Base Error

 *  [barb45684](https://wordpress.org/support/users/barb45684/)
 * (@barb45684)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/mysql-data-base-error/)
 * I’d appreciate your help. I had internal server errors on my blog, so I deleted
   it and installed in a different directory. I was able to get it working but I
   have a database error:
 * 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‘
   INNER JOIN wp_links ON link_category = cat_id WHERE link_visible = ‘Y’ ‘ at line
   5]
    SELECT cat_id, cat_name, COUNT( link_id ) as num_links FROM INNER JOIN wp_links
   ON link_category = cat_id WHERE link_visible = ‘Y’ GROUP BY cat_id HAVING num_links
   > 0 ORDER BY cat_name
 * Seems that the archieved entries will display properly, but I wanted to upgrade
   the wordpress and get it working properly without the error.
 * The blog is located here. You can scroll down and see the error on the right 
   sidebar. [http://www.bestfreemarketingtools.com/internetmarketing/](http://www.bestfreemarketingtools.com/internetmarketing/)
 * If you can help, I’d appreciate it.

Viewing 1 replies (of 1 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/mysql-data-base-error/#post-1000115)
 * what happens when you kill that plugin/widget?

Viewing 1 replies (of 1 total)

The topic ‘MySql Data Base Error’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Samuel B](https://wordpress.org/support/users/samboll/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/mysql-data-base-error/#post-1000115)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
