select * from bukken_sub where (bu_disp = '') and ( (1) and ((bu_type1 = 3 and bu_type2 = 1 or bu_type1 = 3 and bu_type2 = 2 or ((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10)) or ((bu_type1 = 2 and bu_type2 = 2) or (bu_type1 = 3 and bu_type2 = 3))) and bu_disp != 2) and ((bu_type1 = 3 and bu_type2 = 1) or (bu_type1 = 3 and bu_type2 = 2) or (((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10))) or (((bu_type1 = 2 and bu_type2 = 2) or (bu_type1 = 3 and bu_type2 = 3)))) and ( ( (1) and (bu_type1 = 3 and bu_type2 = 1) ) or ( (1) and (bu_type1 = 3 and bu_type2 = 2) ) or ( (1) and (((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10))) ) or ( (1) and (((bu_type1 = 2 and bu_type2 = 2) or (bu_type1 = 3 and bu_type2 = 3))) ) ) ) and ( (1) and ( ( (1) and ((bu_type1 = 3 and bu_type2 = 1 or bu_type1 = 3 and bu_type2 = 2 or ((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10)) or ((bu_type1 = 2 and bu_type2 = 2) or (bu_type1 = 3 and bu_type2 = 3))) and bu_disp != 2) and ((((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10))) or (bu_type1 = 2 and bu_type2 = 2) or () or (bu_type1 = 3 and bu_type2 = 1)) and (bu_station1 in ('2196_010','2198_160','2105_050','2269_330','2101_025','2104_010','2244_010','2159_170','2160_230','2006_030','2002_020','2003_020','2244_020')) and (concat(bu_address1, bu_address2) like '޻ܶĮ%') and ( ( (1) and (((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10))) ) or ( (1) and (bu_type1 = 2 and bu_type2 = 2) ) or ( (1) and () ) or ( (1) and (bu_type1 = 3 and bu_type2 = 1) ) ) )) and ((bu_type1 = 3 and bu_type2 = 1 or bu_type1 = 3 and bu_type2 = 2 or ((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10)) or ((bu_type1 = 2 and bu_type2 = 2) or (bu_type1 = 3 and bu_type2 = 3))) and bu_disp != 2) and ((bu_type1 = 3 and bu_type2 = 1) or (bu_type1 = 3 and bu_type2 = 2) or (((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10))) or (((bu_type1 = 2 and bu_type2 = 2) or (bu_type1 = 3 and bu_type2 = 3)))) and ( ( (1) and (bu_type1 = 3 and bu_type2 = 1) ) or ( (1) and (bu_type1 = 3 and bu_type2 = 2) ) or ( (1) and (((bu_type1 = 2 and bu_type2 = 1) or (bu_type1 = 4 and bu_type2 = 10))) ) or ( (1) and (((bu_type1 = 2 and bu_type2 = 2) or (bu_type1 = 3 and bu_type2 = 3))) ) ) ) order by bu_priceYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') or (bu_type1 = 3 and bu_type2 = 1)) and (bu_station1 in ('2196_010','2198_160' at line 23