Error Warning!

Error´╝Ü /product_detail-344.html
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 b.goods_id = order by sort desc,id' at line 1
Error sql: select,b.attr_value from dy_attribute a inner join dy_goods_attr b on where a.tid= and b.goods_id = order by sort desc,id