select * from tabella where id in(1,2,3,4) order by field(id,3,4,2,1)