Error en la consulta: SELECT SUM(p1) + SUM(p2) + SUM(p3) + SUM(p4) as votos, COUNT(*) as votantes FROM azu_escuelas_valoracion WHERE id_escuela = AND activo = 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND activo = 1' at line 1