In case taxes are paid by any party whose lands are in controversy in any of the courts of this state, and the party so paying shall fail to recover such land, such party shall be entitled to collect from the parties recovering the taxes so paid, with interest thereon at the rate prescribed by K.S.A. 79-2004, and amendments thereto, and the taxes so paid shall be a lien on any such land.
K.S.A. 79-2902