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