Código PHP:
Ver original
$resultados = mysql_query("SELECT DISTINCT dos, COUNT(*) AS num FROM p608 WHERE campus='Melilla' GROUP BY dos ORDER BY CAST(dos AS SIGNED);