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 '-9,9' at line 1 in SELECT id, slug, titulo, chamada, thumb, insert_date FROM an_blog WHERE stt = 1 ORDER BY insert_date DESC LIMIT -9,9