SQL 执行失败: SQLSTATE[42000]: Syntax error or access violation: 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 'and orderstate=0' at line 1 [SQL: select count(id) as mycount from bb_order where delstate=0 and userid= and orderstate=0]