Invalid query: select P.link_cht as link,
P.title_cht as title,
P.id as id,
P.youtube_cht as youtube_link,
P.description_cht as description,
P.image_cht as image
from tbl_media P,tbl_media_group L
where P.media_group=L.id
and P.media_group='fmi_highlights'
and isvalid='1'
and (P.post_date is null or DATE(P.post_date) <= curdate())
and (P.expiry_date is null or DATE(P.expiry_date) >= curdate())
order by P.post_date,P.pkey limit -1000,1000
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 '-1000,1000' at line 13