Title: SQL error in my site error log
Last modified: August 21, 2016

---

# SQL error in my site error log

 *  Resolved [WPElliott](https://wordpress.org/support/users/wpelliott/)
 * (@wpelliott)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/sql-error-in-my-site-error-log/)
 * I just checked my error logs and found the following message (multiple times):
 * > [Fri Apr 12 11:15:36 2013] [error] [client 96.126.117.155] 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 ‘) ORDER BY ad_id
   > DESC /* From [soaringcafe.com/wp-cron.php?doing_wp_cron=136576’ at line 1 for
   > query SELECT * FROM wp_awpcp_ads WHERE ad_id IN () ORDER BY ad_id DESC /* From[
   > soaringcafe.com/wp-cron.php?doing_wp_cron=1365765336.1186931133270263671875]
   > in [/nas/wp/www/cluster-1084/soaringcafe/wp-content/plugins/another-wordpress-
   > classifieds-plugin/classes/models/ad.php:116] */ made by do_action_ref_array,
   > call_user_func_array, doadexpirations, AWPCP_Ad::find
 * Does this need to be fixed? And, is there something I need to do to fix it?
 * Thanks,
    Bill
 * [http://wordpress.org/extend/plugins/adrotate/](http://wordpress.org/extend/plugins/adrotate/)

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

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/sql-error-in-my-site-error-log/#post-3651880)
 * You probably want to contact the author of the plugin that causes it. But sure.
   That should be fixed.
 *  Thread Starter [WPElliott](https://wordpress.org/support/users/wpelliott/)
 * (@wpelliott)
 * [13 years ago](https://wordpress.org/support/topic/sql-error-in-my-site-error-log/#post-3651905)
 * Oops! Clearly, I posted this on the wrong plugin forum. Thank you for your kind
   reply.
 * Regards,
    Bill
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [13 years ago](https://wordpress.org/support/topic/sql-error-in-my-site-error-log/#post-3651917)
 * It happens 😉
 * If the dev isn’t available or not able, let me know. Maybe I can help. – [http://www.ajdg.net/contact/](http://www.ajdg.net/contact/)

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

The topic ‘SQL error in my site error log’ is closed to new replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/sql-error-in-my-site-error-log/#post-3651917)
 * Status: resolved