Database error(functions.php table_select(work,array ( 'work_name' => 'name', 'work_category_id' => 'category_id', 'work_work_type_id' => 'work_type_id', 'work_active_type_id' => 'active_type_id', 'work_access_type_id' => 'access_type_id', 'work_from_time' => 'from_time', 'work_to_time' => 'to_time', 'work_seen' => 'seen', 'work_seen_swf' => 'seen_swf', 'work_seen_swf_last_ip' => 'seen_swf_last_ip', 'work_star' => 'star', 'work_top' => 'top', ),1 and (id in () ) and (active_type_id = '1' ))): 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 ') ) and (active_type_id = '1' ) order by id asc' at line 1
select id,name, category_id, work_type_id, active_type_id, access_type_id, from_time, to_time, seen, seen_swf, seen_swf_last_ip, star, top from work where 1 and (id in () ) and (active_type_id = '1' ) order by id asc