Codice PHP:
$query "SELECT c.race_id c.data, g.*, g.nome_pilota AS nome FROM calendario AS c, gare AS g WHERE c.race_id = g.race_id order by race_id"