Title: Error when edit WP users profiles
Last modified: November 12, 2018

---

# Error when edit WP users profiles

 *  Resolved [eyephone21](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/error-when-edit-wp-users-profiles/)
 * I get an error when i try to edit any WP user.
    When i disable EME (Actully i’ve
   disabled the EME fB events, too) everything works fine.
 * Here the error
 * `WordPress errore sul database 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 'wp_id = 1 AND bookings.event_id=events.event_id AND CONCAT(events.event_start_da'
   at line 1 per la query select bookings.* from wp_eme_bookings as bookings,wp_eme_events
   as events where bookings.status=1AND wp_id = 1 AND bookings.event_id=events.event_id
   AND CONCAT(events.event_start_date,' ',events.event_start_time)>'2018-11-12 11:
   00:47' fatta da require_once('D:\inetpub\webs\mysite\wp-admin\user-edit.php'),
   do_action('show_user_profile'), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array,
   eme_user_profile, eme_get_bookings_list_for_wp_id, eme_get_bookings_by_wp_id`

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

 *  Plugin Author [Franky](https://wordpress.org/support/users/liedekef/)
 * (@liedekef)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/error-when-edit-wp-users-profiles/#post-10870838)
 * Confirmed. Quick fix: go in eme_rsvp.php and change around line 942:
    From: `
   $extra_condition="bookings.status=".RSVP_STATUS_ACTIVE. "AND ";` To: `$extra_condition
   ="bookings.status=".RSVP_STATUS_ACTIVE. " AND ";` (so just an extra space before“
   AND”). I’ll release a bugfix this evening.
 *  Thread Starter [eyephone21](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/error-when-edit-wp-users-profiles/#post-10874136)
 * Wow! That was quick! Thanks Franky!
    -  This reply was modified 7 years, 6 months ago by [eyephone21](https://wordpress.org/support/users/eyephone21/).

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

The topic ‘Error when edit WP users profiles’ is closed to new replies.

 * ![](https://ps.w.org/events-made-easy/assets/icon-256x256.png?rev=1856035)
 * [Events Made Easy](https://wordpress.org/plugins/events-made-easy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-made-easy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-made-easy/)
 * [Active Topics](https://wordpress.org/support/plugin/events-made-easy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-made-easy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-made-easy/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [eyephone21](https://wordpress.org/support/users/eyephone21/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/error-when-edit-wp-users-profiles/#post-10874136)
 * Status: resolved