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='253') || (ann_scat='253') || (ann_sscat='253')) AND ann_actif='1' ORDER BY ann_id DESC, ann_id DESC LIMIT -10, 10