No lien provided under this article shall continue for a period longer than twenty (20) years after the certified copy of an order imposing a fine has been recorded, unless within that time an action to foreclose on the lien is commenced in a court of competent jurisdiction. In an action to foreclose on a lien, the prevailing party is entitled to recover all costs, including a reasonable attorneys fee, that are incurred in the foreclosure. The city shall be entitled to collect all costs incurred in recording and satisfying a valid lien. The continuation of the lien effected by the commencement of the action shall not be good against creditors, or subsequent purchasers for valuable consideration without notice, unless a notice of lis pendens is recorded.