I have the following code:
select s.id from [account].[dbo].[company] c join [account].[dbo].[member] m on m.id = c.memberId where m.id = 321 or m.id