Error Warning!

Error infos: 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 c.gname='颜色' and d.id in(185,186,187,188,668)' at line 1
Error sql: select d.id,d.gvalue,d.color from dy_caidan a inner join dy_goods_type b on a.tid=b.id inner join dy_guige c on b.id=c.tid inner join dy_guige_value d on c.id=d.gid where a.id= and c.gname='颜色' and d.id in(185,186,187,188,668)