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 '-30,30' at line 4select * from prefix_articles where status='A' and category_id='15' order by article_title desc limit -30,30