DATABASE QUERY ERROR!
QUERY: SELECT * FROM gerencia_produtos INNER JOIN (SELECT PROD_ID, NOME AS IMAGE, COVER FROM (SELECT * FROM gerencia_produtosimagens WHERE DT_DEL IS NULL ORDER BY COVER DESC) SUBS GROUP BY PROD_ID) SUBQ ON gerencia_produtos.ID = SUBQ.PROD_ID INNER JOIN (SELECT ID AS CATEG_ID,NOME AS CATEG_NOME FROM gerencia_categorias WHERE DT_DEL IS NULL AND STATUS = 1) CSUBQ ON CSUBQ.CATEG_ID = gerencia_produtos.SUB_ID WHERE SUB_ID = '31' AND DT_DEL IS NULL AND STATUS = '1' ORDER BY ORDER_ID LIMIT -100, 100
ERROR NO: 1064
MYSQL ERROR: 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 '-100, 100' at line 1