select count(*) as cnt from where wr_reply like '%' and wr_id <> '' and wr_num = '' and wr_is_comment = 0

1064 : 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 wr_reply like '%' and wr_id <> '' and wr_num = '' ' at line 2

error file : /bbs/delete.php