Federación Nacional de Estudiantes Revolucionarios “Rafael Ramírez”

Biblioteca Digital

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 '-10, 10' at line 1
SELECT * FROM contenidos WHERE (tipo='libros') AND status='Activo' AND '2022-12-03 06:40:22'>= vigencia_d AND '2022-12-03 06:40:22'<=vigencia_h ORDER BY publicacion DESC, id_contenido DESC LIMIT -10, 10