SELECT `idx`, `total_order_by`, `website_order_by`, `subject`, `hit_count`, `add_date`, `secret_flag`, `parent_idx`, `add_id` FROM `board_data` WHERE `board_id`='portfolio' AND `del_flag`='n' AND `real_data`='y' AND `idx`!=1538 AND `category` LIKE '%paging=1%' AND `paging=1_order_by`< ORDER BY `paging=1_order_by` DESC LIMIT 1 There is an error in the transmitted query. ERROR_CODE 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 'ORDER BY `paging=1_order_by` DESC LIMIT 1' at line 1