Codice PHP:
$sql "SELECT  * 
  FROM `ore` 
  WHERE `utente_id` = '
$id_cognome' AND MONTH(data_id) = $mese
  ORDER BY `data_id`"