Title: Mysql error from Error log
Last modified: August 19, 2016

---

# Mysql error from Error log

 *  [levani01](https://wordpress.org/support/users/levani01/)
 * (@levani01)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/mysql-error-from-error-log/)
 * I checked my wordpress error log and saw that it’s filled with this error:
 * > [14-Mar-2009 01:08:32] 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 ‘AND taxonomy = ‘category” at line 1 for query
   > SELECT * FROM wp_term_taxonomy WHERE term_taxonomy_id = AND taxonomy = ‘category’
   > made by require, require_once, include, include
 * There were more that 1000 like this.
 * Does anyone know what it means?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/mysql-error-from-error-log/#post-1020653)
 * Hi – It means there is a syntax error in a SQL statement somewhere. Its pretty
   unlikely its in the WP core code as people all over the place would be experiencing
   this if it were so. This narrows it down to (in order of liklihood)
    1. custom mods that were done to the theme installed on your site
    2. a plugin
    3. your theme’s code
 * The bad code refers to WP’s category system. If you have custom code around categories
   that’s the 1st place to look. If you have category-related plugins that’s the
   2nd place to look.

Viewing 1 replies (of 1 total)

The topic ‘Mysql error from Error log’ is closed to new replies.

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
