foreclosure title

If a common law lein in put on title during foreclosure how does that affect the lender?
How would they get clear title if there is a common law lein on title?
The common law lien is a secondary lien to the lenders primary lien. The lender would need to be paid before any one else, but any new owner would have to pay off all liens associated with the property.
