Error de BD, no se pudo consultar la base de datos SELECT MAX(TIME_TO_SEC(CAST(tiempo_st AS TIME))) *100/ as tiempo_max FROM test_heatmap_zona t WHERE idtest=418 AND idequipo=2 AND id_periodo=2 AND id_intervalo=(SELECT MAX(taux.id_intervalo) FROM test_heatmap_zona taux WHERE taux.idtest=t.idtest);Error MySQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as tiempo_max FROM test_heatmap_zona t WHERE idtest=418 AND idequipo=' at line 1