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 '-10, 10' at line 1SELECT *, (SELECT dbm_marque FROM aup_db_marque WHERE dbm_id=ann_mar_id) AS ann_marque FROM aup_anndem WHERE ((ann_cat='168') || (ann_scat='168') || (ann_sscat='168')) AND ann_actif='1' ORDER BY ann_id DESC, ann_id DESC LIMIT -10, 10