Title: SQL Syntax error
Last modified: October 26, 2022

---

# SQL Syntax error

 *  Resolved [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/sql-syntax-error-23/)
 * Hello,
    When I visit my wordpress admin pages this generates an SQL error visible
   in the apache logs:
 * `You have an error in your SQL syntax; check the manual that corresponds to your
   MariaDB server version for the right syntax to use near ” at line 1 for the request
   INSERT INTO wp_em_bookings_meta (booking_id, meta_key, meta_value) VALUES done
   by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘
   wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters,
   em_init, em_install, em_upgrade_current_installation, QM_DB->query’
 * The error repeats on every page I visit as admin.
 * Events Manager V6.1.3

Viewing 1 replies (of 1 total)

 *  Thread Starter [xberg](https://wordpress.org/support/users/xberg/)
 * (@xberg)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/sql-syntax-error-23/#post-16180114)
 * The error is still there in Events Manager 6.1.4.
 * Using last version of WP + PHP 8.1.12

Viewing 1 replies (of 1 total)

The topic ‘SQL Syntax 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/)

 * 2 replies
 * 1 participant
 * Last reply from: [xberg](https://wordpress.org/support/users/xberg/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/sql-syntax-error-23/#post-16180114)
 * Status: resolved