Title: MySQL &quot;error in your SQL syntax&quot;
Last modified: August 30, 2016

---

# MySQL "error in your SQL syntax"

 *  Resolved [Violent](https://wordpress.org/support/users/violent/)
 * (@violent)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/)
 * Hi, after update to the last version, I’m getting this error under comments’ 
   form:
    << Ошибка базы данных WordPress: [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 1] SELECT GROUP_CONCAT(TRIM(BOTH ‘,’ FROM `meta_value`))
   FROM `wp_commentmeta` WHERE `meta_key` = ‘wpdiscuz_child_ids’ AND comment_id 
   IN () >>
 * Please [check](http://4iam.net) this and **fix**.
 * [https://wordpress.org/plugins/wpdiscuz/](https://wordpress.org/plugins/wpdiscuz/)

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

 *  [Amr Ali](https://wordpress.org/support/users/amr3li/)
 * (@amr3li)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/#post-6796115)
 * Hello
    I am getting the same error everytime wpDiscuz is loaded in a blog post,
   and it only stared to count since the last update “3.0.8”
 * > WordPress database error 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 1 for query SELECT GROUP_CONCAT(TRIM(BOTH ‘,’ FROM `meta_value`)) FROM`
   > ehdb_commentmeta` WHERE `meta_key` = ‘wpdiscuz_child_ids’ AND comment_id IN()
   > made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.
   > php’), include(‘/themes/salient/single.php’), comments_template, require(‘/
   > plugins/wpdiscuz/templates/comment/comment-form.php’), WpdiscuzCore->getWPComments,
   > WpdiscuzCore->_getWPComments, WpdiscuzOptimizationHelper->getCommentListByParentIds,
   > WpdiscuzDBManager->getIdsInMeta
 * Hopefully it gets fixed quickly, Thank you
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/#post-6796121)
 * Ok, we see the issue.
    We’re going to update it asap…
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/#post-6796184)
 * All issues are fixed please update to 3.0.9 version. We just released it. Don’t
   forget delete cache after the update.
 *  Thread Starter [Violent](https://wordpress.org/support/users/violent/)
 * (@violent)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/#post-6796187)
 * Thanks for the quick response to the problem! All is good now 😊😉
 *  [Amr Ali](https://wordpress.org/support/users/amr3li/)
 * (@amr3li)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/#post-6796188)
 * Hello
 * 3.0.9 update solved the issue.
    Quick respond and brilliant support. thank you
   guys
 * regards
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/#post-6796189)
 * You’re welcome!

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

The topic ‘MySQL "error in your SQL syntax"’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-in-your-sql-syntax/#post-6796189)
 * Status: resolved