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 cateid= ) ORDER BY id desc LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `dg_article` WHERE ( id > and cateid= ) ORDER BY id desc LIMIT 1