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 '-25, 25' at line 1
select id, newstime, smalltext, title , titlepic, classid, newstime from ***_ecms_news where classid in ( 150 ) order by newstime desc limit -25, 25ո