[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 R3.*, if(R3.insider_flg='Y',1,0) as node_data_field_insider_chk_field_insider_chk_value, R3.title as node_title, R3.create_date as create_datetime, concat('/column/',R3.nid) as link, REPLACE(R3.thumb_path, 'sites/default/files',if(R3.source_media_code='82001','/files/itworld/archive','/files/ciokr/archive')) as image_url FROM (SELECT * FROM property_has_node WHERE media_code='82002' AND property_id=13) R1 LEFT JOIN media_has_node R2 ON R2.media_code=R1.media_code AND R2.nid=R1.nid LEFT JOIN node R3 ON R3.source_media_code=R2.source_media_code AND R3.nid=R2.nid where R3.delete_flg='N' and R3.status=4 and date_format(create_date,'%Y-%m-%d %H')<='2022-09-27 19' and display_flg='Y' order by create_date DESC limit -17,17