Title: Broken site &#8211; &#8220;Error in SQL syntax&#8221;
Last modified: November 23, 2017

---

# Broken site – “Error in SQL syntax”

 *  Resolved [whale74](https://wordpress.org/support/users/whale74/)
 * (@whale74)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/broken-site-error-in-sql-syntax/)
 * My site is obviously broken since some time. I’ve narrowed it down to the UAM
   plugin. Navigation menues aren’t showing and the page shows several database 
   errors like this:
 * > 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 ‘,225) ) ) AND cjxw3i2yh_posts.post_type = ‘nav_menu_item’ AND ((cjxw3i2yh_pos’
   > at line 5]
   >  SELECT cjxw3i2yh_posts.* FROM cjxw3i2yh_posts WHERE 1=1 AND cjxw3i2yh_posts.
   > ID IN (136,3843,4346) AND ( cjxw3i2yh_posts.ID NOT IN ( SELECT object_id FROM
   > cjxw3i2yh_term_relationships WHERE term_taxonomy_id IN (6,,,225) ) ) AND cjxw3i2yh_posts.
   > post_type = ‘nav_menu_item’ AND ((cjxw3i2yh_posts.post_status = ‘publish’))
   > GROUP BY cjxw3i2yh_posts.ID ORDER BY cjxw3i2yh_posts.menu_order ASC
 * As soon as a user logs in, the site works as expected, errors also vanish if 
   I deactivate the UAM plugin.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbroken-site-error-in-sql-syntax%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [gm_alex](https://wordpress.org/support/users/gm_alex/)
 * (@gm_alex)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/broken-site-error-in-sql-syntax/#post-9714594)
 * Please create an issue here: [https://github.com/GM-Alex/user-access-manager/issues](https://github.com/GM-Alex/user-access-manager/issues)
   
   See also [https://wordpress.org/plugins/user-access-manager/](https://wordpress.org/plugins/user-access-manager/)
   and [https://wordpress.org/support/topic/read-before-you-post-a-support-request/](https://wordpress.org/support/topic/read-before-you-post-a-support-request/):
 * >  Please report bugs and feature requests here: [https://github.com/GM-Alex/user-access-manager/issues](https://github.com/GM-Alex/user-access-manager/issues)
   > 
   > If you are a developer and want to contribute please visit [https://github.com/GM-Alex/user-access-manager](https://github.com/GM-Alex/user-access-manager)
   > For general questions, like how to setup, best practice and so on please use
   > the support thread here (**don’t post issues here**): [https://wordpress.org/support/plugin/user-access-manager](https://wordpress.org/support/plugin/user-access-manager)
 * The topic here will marked as resolved because I will not provide support here
   due the lack of overview. Of course this place can be used for discussions between
   UAM users.

Viewing 1 replies (of 1 total)

The topic ‘Broken site – “Error in SQL syntax”’ is closed to new replies.

 * ![](https://ps.w.org/user-access-manager/assets/icon.svg?rev=1563783)
 * [User Access Manager](https://wordpress.org/plugins/user-access-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-access-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-access-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/user-access-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-access-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-access-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [gm_alex](https://wordpress.org/support/users/gm_alex/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/broken-site-error-in-sql-syntax/#post-9714594)
 * Status: resolved