Select v.*
From Vendors v
inner join Contractors c on c.company_id=v.company_id
inner join contacts t on t.company_id=v.company_id
Where Exists (
Select Top 1 Null
From Users c
Where v.companyId = c.companyId
And c.username = @UserName And v.BidID = @BidID)