SELECT id,type_id,type_roue_id,user_id,tag,bedeck,title,title_md5,linkurl,area,price,summary,thumbnail,submit_date,topflag,recommendflag,stars,clicktimes,psort,pass from apresys_product where pass=1 and type_id = and id!= LIMIT 0,20

Failed: 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 id!= LIMIT 0,20' at line 1