(a) Legal action. At any time within three years after any tax or any amount of tax required to be collected becomes due and payable and at any time within three years after the delinquency of any tax or any amount of tax required to be collected, the county clerk may bring an action in a court of competent jurisdiction in the name of the county to collect the amount delinquent together with interest, court fees, filing fees, attorneys' fees and other legal fees incident thereto. (b) Withholding of tax due on sale or discontinuance of business. If any innkeeper liable for any amount under this article sells the business or quits the business, the successors or assigns thereof shall withhold a sufficient amount of the purchase price to cover the amount due the county until the former owner produces a receipt from the county clerk showing payment or a certificate stating that no amount is due.