//$query="select platforms.name, platforms.icon from platforms order by platforms.name asc";
$sql='SELECT count(*) as c,platforms.name as name,platforms.icon as icon FROM prods_platforms right JOIN platforms on platforms.id = prods_platforms.platform GROUP by prods_platforms.platform order by c DESC';