You'll have to pay them, plus accrued interest, penalties and maybe some attorney charges. That means they're definitely in the equation. :(
Lenders record an interest in your property when you take out a loan, and before the property can be transferred to a buyer, any previous interests must be settled. The lender will be paid, but deducted from the sale proceeds.