When lands are sold for taxes which are not liable therefor, the purchaser may recover from the officer by whose fault or neglect the assessment or sale was made, and the sureties on his official bond, the amount of the purchase money paid him therefor, with interest thereon from the day of the sale, together with all costs which are adjudged against him in any action concerning said land involving such tax title.