Query failed: SELECT normaliserat_ord as sortform,lopnr as l_nr,ursprungligt_ord as lemma,ordkl, typ,sidnr1,sidnr2,'SAOL' as bok,homonr,stycke,subnr FROM t1 where (replace(ursprungligt_ord,'','') = 'Stom' or replace(ursprungligt_ord,'','') = 'Stom' ) and typ not like 'alt%' ORDER BY bok,l_nr