Sounds like your attorney screwed up...not doing the proper title searches,
filings, etc to protect you. On a complex transaction like this you shouldn't rely on a realtor whose primary job is to market your home, work with real estate professionals, and act as a liaison between you and the professionals.