SELECT a.id,a.name as pname,a.price,a.market_price,a.country,a.member_id as userid,a.pic,a.sales,c.company,pc.counts, p.* FROM mallbuilder_product a left join mallbuilder_distribution_product p ON a.id=p.product_id left join mallbuilder_shop c on a.member_id=c.userid left join (SELECT pid,count(1) AS counts FROM `mallbuilder_product_comment` GROUP BY pid) pc on pc.pid=p.product_id WHERE c.shop_statu=1 and a.status>0 and is_shelves=1 and a.brand='D'AVEIA 艾维雅' order by a.rank desc,a.uptime descYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AVEIA 艾维雅' order by a.rank desc,a.uptime desc' at line 1