In a foreclosure action, the judgment of foreclosure directs that the mortgaged premises be sold at auction to pay the sum due to the foreclosing plaintiff. A judgment lien attaches to the debtor's afteracquired property provided the judgment is docketed in the same county as the real property.CPLR § 5235 relieves a judgment creditor who wishes to sell your real property after losing its lien status after 10 years. In most states, the judgment creditor must record the lien via a county or state filing. The second mortgage lender and the judgment creditor would receive nothing, and their liens would be wiped out in the foreclosure. That judgment must then be certified in the county where the real estate is located. Each judgment or lien entry will contain information about the original filing as well as any subsequent filings such as satisfactions and renewals.