Does a Mortgage Foreclosure Erase an Existing Foreclosed Lien?

mortgage

Our condominium association filed and foreclosed a lien for unpaid dues. Redemption period passed. Numerous months shortly (now) mortgagor (bank) is beginning foreclosure process for unpaid mortgage. Property is “under water”. If mortgage is foreclosed and redemption period passes, what happens to our existing lien?? Thanks.