Title: SQL Syntax Error
Last modified: August 13, 2019

---

# SQL Syntax Error

 *  [atoupet](https://wordpress.org/support/users/atoupet/)
 * (@atoupet)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-19/)
 * Hi! I just install your plugin and tested it with my form. but got this error
   in the admin:
    `[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 2]`
 * I tried to use your new hook `cfdb7_before_save` to apply esc_sql to the returned
   form data. But my modified data doesn’t seems to be used.
 * Can you help me please? 🙂
    Thanks a lot!

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

 *  Thread Starter [atoupet](https://wordpress.org/support/users/atoupet/)
 * (@atoupet)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-19/#post-11828262)
 * Damn I think i just found the problem ….
    It’s not compatible with this plugin:
   [https://wordpress.org/plugins/cf7-conditional-fields/](https://wordpress.org/plugins/cf7-conditional-fields/)
 *  Plugin Author [Arshid](https://wordpress.org/support/users/arshidkv12/)
 * (@arshidkv12)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-19/#post-11828456)
 * Please note, Never edit database entries manually.
    Because it is using serialize
   and unserialize PHP function.
 *  Thread Starter [atoupet](https://wordpress.org/support/users/atoupet/)
 * (@atoupet)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-19/#post-11828461)
 * Didn’t edit entries in database. Only the hook.
    But didnt work
 *  Plugin Author [Arshid](https://wordpress.org/support/users/arshidkv12/)
 * (@arshidkv12)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-19/#post-11828476)
 * I will check it as soon as possible.
    [https://github.com/arshidkv12/contact-form-cfdb7](https://github.com/arshidkv12/contact-form-cfdb7)
   You can make pull request [https://github.com/arshidkv12/contact-form-cfdb7](https://github.com/arshidkv12/contact-form-cfdb7)

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

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

 * ![](https://ps.w.org/contact-form-cfdb7/assets/icon-256x256.png?rev=1619878)
 * [Database Addon for Contact Form 7 - CFDB7](https://wordpress.org/plugins/contact-form-cfdb7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-cfdb7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-cfdb7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-cfdb7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-cfdb7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-cfdb7/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Arshid](https://wordpress.org/support/users/arshidkv12/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/sql-syntax-error-19/#post-11828476)
 * Status: not resolved