Title: WordPress database error
Last modified: August 21, 2016

---

# WordPress database error

 *  [Kazan](https://wordpress.org/support/users/africashot/)
 * (@africashot)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-89/)
 * Today I have noticed the below errors. Is there somebody who understand what 
   does the errors mean and navigate how to fixed them? The site seems to work with
   no problems.
 * > [29-Jul-2014 07:59:01 UTC] 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 for query SELECT ID, post_title,
   > post_parent FROM wp_posts WHERE post_status = ‘inherit’ AND post_type = ‘attachment’
   > AND post_parent IN () made by require(‘wp-blog-header.php’), wp, WP->main, 
   > WP->query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array,
   > call_user_func_array, WPSEO_Sitemaps->redirect, WPSEO_Sitemaps->build_sitemap,
   > WPSEO_Sitemaps->build_post_type_map
   >  [29-Jul-2014 07:59:01 UTC] 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
   > for query SELECT ID, post_title, post_parent FROM wp_posts WHERE post_status
   > = ‘inherit’ AND post_type = ‘attachment’ AND post_parent IN () made by require(‘
   > wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query-
   > >get_posts, do_action_ref_array, call_user_func_array, WPSEO_Sitemaps->redirect,
   > WPSEO_Sitemaps->build_sitemap, WPSEO_Sitemaps->build_post_type_map [29-Jul-
   > 2014 07:59:01 UTC] 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 for query SELECT meta_value FROM wp_postmeta
   > WHERE meta_key = ‘_thumbnail_id’ AND post_id IN () made by require(‘wp-blog-
   > header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts,
   > do_action_ref_array, call_user_func_array, WPSEO_Sitemaps->redirect, WPSEO_Sitemaps-
   > >build_sitemap, WPSEO_Sitemaps->build_post_type_map [29-Jul-2014 07:59:01 UTC]
   > 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 for query SELECT meta_value FROM wp_postmeta WHERE meta_key = ‘_thumbnail_id’
   > AND post_id IN () made by require(‘wp-blog-header.php’), wp, WP->main, WP->
   > query_posts, WP_Query->query, WP_Query->get_posts, do_action_ref_array, call_user_func_array,
   > WPSEO_Sitemaps->redirect, WPSEO_Sitemaps->build_sitemap, WPSEO_Sitemaps->build_post_type_map
 * Great thank you for any advice!

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

 *  [danhgilmore](https://wordpress.org/support/users/danhgilmore/)
 * (@danhgilmore)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-89/#post-5140479)
 * Is WPSEO_Sitemaps a plugin you are using? If so, I’d recommend deactivating it
   and see if the errors continue. If they stop, you should contact the support 
   for the plugin.
 *  Thread Starter [Kazan](https://wordpress.org/support/users/africashot/)
 * (@africashot)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-89/#post-5140481)
 * Thank you, I believe they will stop once I deactivate the plugin. Any idea where
   can I contact the support forum from the plugin?
 * I have very bad experience to communicate with the team of the plugin. I have
   paid for video seo for 90usd which has support, but it comes with wp seo without
   which it can’t function, but it does not have support.
 *  [danhgilmore](https://wordpress.org/support/users/danhgilmore/)
 * (@danhgilmore)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-89/#post-5140483)
 * There should be contact information somewhere within the plugin code. I tried
   to Google for WPSEO_Sitemaps but couldn’t find anything quickly.
 *  Thread Starter [Kazan](https://wordpress.org/support/users/africashot/)
 * (@africashot)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-89/#post-5140498)
 * Thank you very much, i will try to figure out.

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

The topic ‘WordPress database error’ is closed to new replies.

## Tags

 * [sql](https://wordpress.org/support/topic-tag/sql/)
 * [WordPress database error](https://wordpress.org/support/topic-tag/wordpress-database-error/)
 * [wpseo](https://wordpress.org/support/topic-tag/wpseo/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Kazan](https://wordpress.org/support/users/africashot/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/wordpress-database-error-89/#post-5140498)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
