SQLSTATE[HY000]: General error: 1 no such table: Registrados Raw SQL : SELECT MAX(Matricula) AS Matricula FROM Registrados WHERE CicloEscolar='2021-2022';