Title: Database error
Last modified: January 3, 2018

---

# Database error

 *  Resolved [woomad](https://wordpress.org/support/users/woomad/)
 * (@woomad)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/database-error-254/)
 * Every time I use wp-sweep I get this following error in my error log file. Any
   idea what it is?
 * [03-Jan-2018 02:24:04 UTC] 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 ‘WHERE `woocommerce_term_id` = 1430′ at line 1 for
   query DELETE FROM WHERE `woocommerce_term_id` = 1430 made by do_action(‘wp_ajax_sweep’),
   WP_Hook->do_action, WP_Hook->apply_filters, WPSweep->ajax_sweep, WPSweep->sweep,
   wp_delete_term, do_action(‘delete_term’), WP_Hook->do_action, WP_Hook->apply_filters,
   pw_brans_WC_Admin_Taxonomies->delete_term
 * woocommerce_term_id` keeps on changing all the time.
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/database-error-254/#post-9839562)
 * Sorry, I am not sure, I don’t use Woocommerce myself and hence I am not familiar
   with this error. But it seems something is intercepting this plugin as this plugin
   does not touch custom tables and it seems woocommerce_term_id is coming from 
   a custom table.

Viewing 1 replies (of 1 total)

The topic ‘Database error’ is closed to new replies.

 * ![](https://ps.w.org/wp-sweep/assets/icon.svg?rev=1098912)
 * [WP-Sweep](https://wordpress.org/plugins/wp-sweep/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-sweep/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-sweep/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-sweep/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-sweep/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-sweep/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/database-error-254/#post-9839562)
 * Status: resolved