SELECT a.id,a.name as pname,a.price,a.market_price,a.member_id as userid,a.pic,c.company, p.* FROM qianmarket_product a left join qianmarket_distribution_product p ON a.id=p.product_id left join qianmarket_shop c on a.member_id=c.userid WHERE c.shop_statu=1 and a.status>0 and is_shelves=1 and is_tg='false' and LOCATE('10181503',a.catid)=1 and a.type='1' order by a.rank desc,a.uptime descTable 'sql_1hg_cn.qianmarket_distribution_product' doesn't exist