• Try two quotes instead of one:

    Select * from openquery(DB24,

    'select t_cprj, t_seak from BAAN5TAM.ttppdm600577 where t_psts LIKE ''2''')