Error en la sentencia sql: SELECT * FROM fiestasi_FiestasInolvidables.fiestas_estadisticas WHERE IDfiesta = 200 AND IDrubro = 215 AND IDsubrubro = 522 AND IDzona = AND IDlocalidad = 155 AND periodoMes = 07 AND periodoAno = 2019 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND IDlocalidad = 155 AND periodoMes = 07 AND periodoAno = 2019' at line 1