Invalid query: select P.link_eng as link,
P.title_eng as title,
P.id as id,
P.youtube_eng as youtube_link,
P.description_eng as description,
P.image_eng 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