select count(*) as cnt from itw_bbs_notice where (status='1' and academy_board = 'on') or agent_idx = order by idx desc
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 'order by idx desc' at line 1
error file : /agent/academy-notice-list.html