$best_drop = $db->query("SELECT `skin_name` FROM `inventory` WHERE MAX(`skin_cost`), `id` = '$id'")->fetch_assoc();
$best_cost = $db->query("SELECT MAX(`skin_cost`) FROM `inventory` WHERE `id` = '$id'")->fetch_array(); $best_cost = $best_cost[0]; $best_drop = $db->query("SELECT `skin_img`, `skin_name`, `skin_rarity` FROM `inventory` WHERE `skin_cost` = '$best_cost'")->fetch_assoc(); print_r($best_drop['skin_img']); print_r($best_drop['skin_name']); print_r($best_drop['skin_rarity']);
SELECT *FROM `inventory`ORDER BY `skin_cost` DESCLIMIT 1