Title: SQL Error
Last modified: May 10, 2017

---

# SQL Error

 *  Resolved [Achim](https://wordpress.org/support/users/ar7/)
 * (@ar7)
 * [9 years ago](https://wordpress.org/support/topic/sql-error-36/)
 * Hi, what´s going on here? THANK YOU
    WordPress-Datenbank-Fehler: [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 (`event_private`=0 OR (`event_private`
   =1 AND (`group_id` IS NULL OR `gro’ at line 3] SELECT SQL_CALC_FOUND_ROWS * FROM
   wp_em_events LEFT JOIN wp_em_locations ON wp_em_locations.location_id=wp_em_events.
   location_id WHERE (`recurrence`!=1 OR `recurrence` IS NULL) AND ( event_start_date
   >= CAST(‘2017-05-10’ AS DATE) OR (event_end_date >= CAST(‘2017-05-10’ AS DATE)
   AND event_end_date != ‘0000-00-00’ AND event_end_date IS NOT NULL)) AND (`event_status`
   =1) AND ( `group_id` IN () ) AND (`event_private`=0 OR (`event_private`=1 AND(`
   group_id` IS NULL OR `group_id` = 0))) GROUP BY wp_em_events.post_id ORDER BY
   event_start_date ASC, event_start_time ASC, event_name ASC LIMIT 1 OFFSET 0

Viewing 1 replies (of 1 total)

 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years ago](https://wordpress.org/support/topic/sql-error-36/#post-9117804)
 * Hi,
 * Where are you seeing this error?

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/sql-error-36/#post-9117804)
 * Status: resolved