Title: SQL Syntax Error
Last modified: February 16, 2021

---

# SQL Syntax Error

 *  [tzwenn](https://wordpress.org/support/users/tzwenn/)
 * (@tzwenn)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/sql-syntax-error-21/)
 * Hi,
    I have an SQL Syntax Error that seems to be connected to the gallery plugin:
 *     ```
       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 ')' at line 5 f\xc3\xbcr Abfrage SELECT p.ID id, p.post_excerpt caption, m.meta_value meta
        \t\t\tFROM heb2_posts p, heb2_postmeta m
        \t\t\tWHERE m.meta_key = '_wp_attachment_metadata'
        \t\t\tAND p.ID = m.post_id
        \t\t\tAND p.ID IN (36,) von require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/shutter-up/single.php'), get_template_part, locate_template, load_template, require('/themes/shutter-up/template-parts/content/content-single.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, Meow_MGL_Core->gallery, Meow_MGL_Builders_Core->build, Meow_MGL_Builders_Core->prepare_data
       ```
   
 * It seems also related to [this problem](https://wordpress.org/support/topic/sql-syntax-error-17/).
   
   What was the solution to this problem?

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

 * ![](https://ps.w.org/meow-gallery/assets/icon-256x256.png?rev=2791571)
 * [Meow Gallery](https://wordpress.org/plugins/meow-gallery/)
 * [Support Threads](https://wordpress.org/support/plugin/meow-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/meow-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meow-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meow-gallery/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [tzwenn](https://wordpress.org/support/users/tzwenn/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/sql-syntax-error-21/)
 * Status: not resolved