[1064]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 '-17,17' at line 8 select R1.media_code,R2.*, R2.title as node_title, R2.thumb_path as filepath, if(R2.insider_flg='Y',1,0) as node_data_field_insider_chk_field_insider_chk_value, R2.create_date as create_datetime, concat('/news/',R2.nid) as link, REPLACE(R2.thumb_path, 'sites/default/files',if(R2.source_media_code='82001','/files/itworld/archive','/files/ciokr/archive')) as image_url from (select * from media_has_node where media_code='82002') R1 left join node R2 on R2.nid=R1.nid and R2.source_media_code=R1.source_media_code where R2.delete_flg='N' and R2.status=4 and R2.type_id=2 and date_format(create_date,'%Y-%m-%d %H')<='2022-09-29 14' and display_flg='Y' order by create_date DESC limit -17,17