select pnodeid from  organizationnode where nodeid in (ids ) group by
pnodeid;