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