select count(pro_id) as rscount from bb_product and pro_state='1' and pro_bbt_state=1 order by pro_id descYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and pro_state='1' and pro_bbt_state=1 order by pro_id desc' at line 1