Error in your SQL syntax – empty Where clause

Hi,

there is several errors with generated SQL statement. The where clause is empty and formulated like: WHERE ( ) see at bottom.

MySQL doesn’t like it end trows an error. Please check and fix it.

Suggestion: other WP PHP functions put “1=1” in teh where clause, if it would be empty:

WHERE(1=1).

Thanks in advance,

Michel

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 ‘:wink:’ at line 1 for query SELECT * FROM wp_term_counts WHERE ( ) made by edit_post, wp_update_post, wp_insert_post, do_action, call_user_func_array, post_indexer_post_insert_update, post_indexer_post_terms_insert_update

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 ‘:wink:’ at line 1 for query UPDATE wp_term_counts SET term_count = term_count + 1,term_count_updated = ‘1264144789’ WHERE ( ) made by edit_post, wp_update_post, wp_insert_post, do_action, call_user_func_array, post_indexer_post_insert_update, post_indexer_post_terms_insert_update