Ver originalSELECT SEC_TO_TIME(AVG( TIME_TO_SEC( espera ) ) ) total FROM turnos_generales WHERE `subdepto`='$area' AND `fecha`='$dia'