SQL Error:
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 '-8,8' at line 1
select * from news where news_nc_id
=8
AND ( ( YEAR
(news_dt
) = 2020
AND MONTH
(news_dt
) >
= 9
) OR ( YEAR
(news_dt
) = 2021
AND MONTH
(news_dt
) <
= 8
) ) order by news_dt desc limit -8,8