SELECT, as pname,a.price,a.market_price,,a.member_id as userid,a.pic,a.sales,,pc.counts, p.* FROM mallbuilder_product a left join mallbuilder_distribution_product p ON 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 WHERE c.shop_statu=1 and a.status>0 and is_shelves=1 and a.brand='Burt's Bees' 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 's Bees' order by a.rank desc,a.uptime desc' at line 1