查询数据库错误
$sql语句:select id,title from phome_ecms_photo where classid= and newstime>'' and checked=1 order by newstime asc limit 1
错误信息: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 newstime>'' and checked=1 order by newstime asc limit 1' at line 1
错误代码:1064