Title: Database Error
Last modified: July 5, 2017

---

# Database Error

 *  Resolved [midihead](https://wordpress.org/support/users/midihead/)
 * (@midihead)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/database-error-241/)
 * I’m running WordPress 4.8 and The Events Calendar 4.5.7. I have recently started
   getting this database error in my PHP error log that looks like it has to do 
   with your plugin:
 * `[05-Jul-2017 09:37:35 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 'AND comment_type != 'webhook_delivery' AND comment_type!
   = 'tribe-ea-error' O' at line 1 for query SELECT wp_comments.* FROM wp_comments
   AND comment_type != 'webhook_delivery' AND comment_type != 'tribe-ea-error' ORDER
   BY comment_date_gmt DESC LIMIT 10 made by require('wp-blog-header.php'), wp, 
   WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts`
 * Please help ASAP. Thank you.

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

 *  Thread Starter [midihead](https://wordpress.org/support/users/midihead/)
 * (@midihead)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-241/#post-9638978)
 * Can I please get a response to this? Thank you very much.
 *  [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * (@jaimemarchwinski)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/database-error-241/#post-9663135)
 * Hi [@midihead](https://wordpress.org/support/users/midihead/),
 * As a first step, I would recommend updating your Events Calendar plugin and WordPress
   version to their most recent versions.
 * If you are still seeing the error afterwards, you may want to go through our 
   [Testing for Conflicts](https://theeventscalendar.com/knowledgebase/testing-for-conflicts/)
   procedure.
 * I hope this helps!
 *  Plugin Contributor [Victor Zarranz](https://wordpress.org/support/users/vicskf/)
 * (@vicskf)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/database-error-241/#post-10143052)
 * Hey there! This thread has been inactive for a while so we’re going to go ahead
   and mark it Resolved. Please feel free to open a new thread if any other questions
   come up and we’d be happy to help. 🙂

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

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

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

## Tags

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

 * 3 replies
 * 3 participants
 * Last reply from: [Victor Zarranz](https://wordpress.org/support/users/vicskf/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/database-error-241/#post-10143052)
 * Status: resolved