select *, if(date_format(bd_endday, '%Y-%m-%d 23:59:59') > now(), '1', '0' ) as dday_timeOff from board_data_table where b_code ='b21' and bd_country_code = 'kr' and of_id = 'muni03' and ( bd_filename4 <> '' || bd_movie_url <> '' ) order by dday_timeOff desc, bd_rank asc, bd_endday asc, bd_thread desc, bd_idx asc limit 0,

1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

error file : /iModule08-infinite-module.php