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 '-29, 29' at line 1
SELECT distinct(id_produs) FROM lng_produse_full WHERE flt1='' AND activ=1 AND public=1 AND activa=1 ORDER BY id_produs desc LIMIT -29, 29