SELECT a.id,a.name as pname,a.price,a.member_id as userid,a.stock,c.company,b.property_1,b.property_2,b.property_3,b.property_4,b.property_5,b.property_6,b.property_7,b.property_8,b.property_6_float,b.property_6_price FROM mb_product a left join mb_defind_1 b on a.id=b.product_id left join mb_shop c on a.member_id=c.userid WHERE c.shop_statu=1 and a.status>0 and a.is_shelves=1 and b.property_2="55" and a.catid = '10040805' and a.name = 'LHMR' and (1 and b.property_3 like '%9%' and ( c.company like '%SZMPL5ZSK0Q7M%' or a.brand like '%SZMPL5ZSK0Q7M%' or a.subhead like '%SZMPL5ZSK0Q7M%')) group by a.member_id,b.property_8,b.property_7,b.property_4 order by (CASE WHEN b.property_1 < 3 THEN 0 ELSE 1 END) DESC,(CASE WHEN a.name LIKE 'LHMR' THEN 3 ELSE 0 END) DESC,(CASE WHEN a.name LIKE 'LHMR%' THEN 2 ELSE 0 END) DESC,(CASE WHEN a.name LIKE '%LHMR' THEN 1 ELSE 0 END) DESC,(CASE WHEN b.property_3 LIKE '%9' THEN 1 ELSE 0 END) DESC, a.rank desc,(CASE WHEN (a.is_top=1 and a.is_rec=1) THEN 3 WHEN (a.is_top=1) THEN 2 WHEN (a.is_rec=1) THEN 1 ELSE 0 END) DESC, (CASE WHEN (a.price=0) THEN 1 ELSE 0 END) ASC,c.grade desc,b.property_6 desc,b.property_8 asc,a.uptime desc limit 0,30Query execution was interrupted