Siamo in ambito MySQL
TIME_TO_SEC converte un valore di formato orario (13:10) in secondi