The judgment in such action or proceeding, if in favor of the plaintiff, shall establish the penalty sued for as a lien upon such premises, subject only to taxes, assessments, water rates, mortgages and mechanics' liens as may exist thereon prior to the filing of the notice of pendency of the action or proceeding.
N.Y. Mult. Dwell. Law § 357