MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT DISTINCT(b.goods_id) FROM `wlssshop`.`ecs_goods_attr` AS a, `wlssshop`.`ecs_goods_attr` AS bWHERE b.attr_value = a.attr_value AND b.attr_id = 212 AND a.goods_attr_id = 2639 ) [2] => Array ( [error] => 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 'b.attr_value = a.attr_value AND b.attr_id = 212 AND a.goods_attr_id = 2639' at line 1 ) [3] => Array ( [errno] => 1064 ) )