select * from `cars` where
(TRIM(REPLACE(`oilcode`,'-','')) = 'A0827') or
(TRIM(REPLACE(`aircode`,'-','')) = 'A0827') or
(TRIM(REPLACE(`fuelcode`,'-','')) = 'A0827') or
(TRIM(REPLACE(`cabincode`,'-','')) = 'A0827') or
(TRIM(REPLACE(`otherCode`,'-','')) like '%~A0827~%') or
(TRIM(REPLACE(`oilcode`,'-','')) like '%~A0827~%') or
(TRIM(REPLACE(`aircode`,'-','')) like '%~A0827~%') or
(TRIM(REPLACE(`fuelcode`,'-','')) like '%~A0827~%') or
(TRIM(REPLACE(`cabincode`,'-','')) like '%~A0827~%')
or TRIM(REPLACE(`oiloem`,'-','')) = '1109110XKV08A' or
TRIM(REPLACE(`airoem`,'-','')) = '1109110XKV08A' or
TRIM(REPLACE(`fueloem`,'-','')) = '1109110XKV08A' or
TRIM(REPLACE(`cabinoem`,'-','')) = '1109110XKV08A'
ORDER BY `cars`.`uin` ASC