Title: SQL Error
Last modified: August 21, 2016

---

# SQL Error

 *  [thethunderbird99](https://wordpress.org/support/users/thethunderbird99/)
 * (@thethunderbird99)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/sql-error-19/)
 * Getting this SQL error over and over again in my error logs:
 * 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 * FROM wp_zaki_like_dislike_comments WHERE comment_id
   = /* From [swimswam.com/wp-comments-post.php] in [/nas/wp/www/cluster-2022/swimswam/
   wp-content/plugins/zaki-like-dislike-comments/classes/class-zaki-like-dislike.
   php:42] */ made by wp_new_comment, wp_allow_comment, check_comment, apply_filters(‘
   comment_text’), call_user_func_array, ZakiLikeDislike_AddPluginHml, ZakiLikeDislike::
   getLikeDislikeHtml, ZakiLikeDislike::getLikeBtn, ZakiLikeDislike::getLikeCountHtml,
   ZakiLikeDislike::getLikeCount, referer: [http://swimswam.com/nli-photos-4-gpac-swimmers-sign-national-letter-intent-past-week/](http://swimswam.com/nli-photos-4-gpac-swimmers-sign-national-letter-intent-past-week/)
 * [https://wordpress.org/plugins/zaki-like-dislike-comments/](https://wordpress.org/plugins/zaki-like-dislike-comments/)

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

 *  Thread Starter [thethunderbird99](https://wordpress.org/support/users/thethunderbird99/)
 * (@thethunderbird99)
 * [12 years ago](https://wordpress.org/support/topic/sql-error-19/#post-4899368)
 * Bueller?
 *  Plugin Author [Riccardo Conte](https://wordpress.org/support/users/rconte-1/)
 * (@rconte-1)
 * [12 years ago](https://wordpress.org/support/topic/sql-error-19/#post-4899369)
 * Seems that you are putting the ZakiLikeDislike function outside the loop. The
   error occur because get_comment_ID() function return null. I’ll add a control
   in next release, until that, can you verify that $post is correctly defined where
   you put the code?

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/zaki-like-dislike-comments.svg)
 * [Zaki Like Dislike Comments](https://wordpress.org/plugins/zaki-like-dislike-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zaki-like-dislike-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zaki-like-dislike-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/zaki-like-dislike-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zaki-like-dislike-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zaki-like-dislike-comments/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Riccardo Conte](https://wordpress.org/support/users/rconte-1/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/sql-error-19/#post-4899369)
 * Status: not resolved