select t1.commodity_id,t1.advertising_price,commodity.name,commodity.price from (select commodity_id,advertising_price from cdy_commodity_store GROUP BY commodity_id order by advertising_price desc) as t1 LEFT JOIN cdy_commodity commodity on commodity.commodity_id = t1.commodity_id LEFT JOIN cdy_commodity_standard standard on standard.commodity_id = commodity.commodity_id where standard.status =-1 order by advertising_price desc