Title: PHP Error Log says &quot;Error in SQL Syntax&quot;
Last modified: August 21, 2016

---

# PHP Error Log says "Error in SQL Syntax"

 *  [harvest316](https://wordpress.org/support/users/harvest316/)
 * (@harvest316)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-error-log-says-error-in-sql-syntax/)
 * I get this in my php error log:
 * 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‘
   status timestamp <= 1300000537 and id not in (select redirect_id from wp_wbz4’
   at line 1 for query select id from wp_wbz404_redirects where status = 2 status
   timestamp <= 1300000537 and id not in (select redirect_id from wp_wbz404_logs)
   made by do_action_ref_array, call_user_func_array, wp_cleaningCron
 * [https://wordpress.org/plugins/404-redirected/](https://wordpress.org/plugins/404-redirected/)

Viewing 1 replies (of 1 total)

 *  [slui](https://wordpress.org/support/users/slui/)
 * (@slui)
 * [12 years ago](https://wordpress.org/support/topic/php-error-log-says-error-in-sql-syntax/#post-4699848)
 * I have exactly the same issue. Any help on this would be great.

Viewing 1 replies (of 1 total)

The topic ‘PHP Error Log says "Error in SQL Syntax"’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/404-redirected.svg)
 * [Redirectioner](https://wordpress.org/plugins/404-redirected/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/404-redirected/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/404-redirected/)
 * [Active Topics](https://wordpress.org/support/plugin/404-redirected/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/404-redirected/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/404-redirected/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [slui](https://wordpress.org/support/users/slui/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/php-error-log-says-error-in-sql-syntax/#post-4699848)
 * Status: not resolved