[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 FR1.*,if(FR2.nid,'Y','N') as fav_flg from (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('/review/',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='82001' AND property_id=14) 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-12-09 09' and display_flg='Y') FR1 left join (select nid,source_media_code from fav_content where member_seq=0) FR2 on FR2.source_media_code=FR1.source_media_code and FR2.nid=FR1.nid order by create_date DESC limit -17,17