SELECT * FROM fp2_m_girl WHERE show_flag = '0' AND ( opt_rdo_1 = 6 OR opt_rdo_2 = 1 OR opt_rdo_4 = 12 OR opt_rdo_5 = 16 ) AND girl_id != 1646 target= ORDER BY seq Asc, girl_id ASC [nativecode=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 'target= ORDER BY seq Asc, girl_id ASC' at line 1]