Seria algo como:

    SELECT * FROM tabela WHERE id IN (22,23,25,27);