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

---

# WordPress Database Error

 *  [tripeclipse](https://wordpress.org/support/users/tripeclipse/)
 * (@tripeclipse)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-7/)
 * I am getting an error on all of the pages of the website I manage.
    [http://www.foodpleasure.org](http://www.foodpleasure.org)
 * The error is on the right side bar.
 * I don’t know what it’s referring to so any help is appreciated

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

 *  [underdog74](https://wordpress.org/support/users/underdog74/)
 * (@underdog74)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-7/#post-604119)
 * I see what you mean. The error is:
 * 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
 * but the problem is, that the cause of the error is not shown.
    Check your admin
   section to see if your categories are ok (if you have them) (I’m guessing you
   have them since the query asks for cat_id and cat_name)
 * Same goes for some titles that have ‘`or " in them, same for categories that 
   have '`or ” in them.
 * That’s it for now 🙂
 *  Thread Starter [tripeclipse](https://wordpress.org/support/users/tripeclipse/)
 * (@tripeclipse)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-7/#post-604455)
 * This is what I found as the sql query when I went into admin.
 * EXPLAIN SELECT COUNT( * ) AS `Rows` , `cat_ID`
    FROM `wp_categories` GROUP BY`
   cat_ID` ORDER BY `cat_ID`
 * The Host is using myPHPadmin
 * So what SHOULD it be?
 *  [mrmist](https://wordpress.org/support/users/mrmist/)
 * (@mrmist)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-7/#post-604456)
 * It’s difficult to know what it should be because we don’t know what that bit 
   of the page is meant to be showing.
 * More than likely though you don’t need the word EXPLAIN at the front of the query,
   because EXPLAIN is used to get information _about_ a query, not to run one. (
   The query is otherwise valid.)
 * Even with the explain though, you shouldn’t be getting a mysql error. It’s valid
   either way.
 * What version of mysql do you have?

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

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
