Your main query should be returning a list of all ItemID's in your table, along with all associated VendorID's. If you have equal values for MinOfCost, it will return both so maybe try modifying your Subquery:
(SELECT DISTINCT TOP 1 ... )
Hopefully, that gets rid of the message you're getting...