The auditor, in his settlements with the tax collector, shall credit him with the amount of state taxes on all lands sold for taxes and struck off to the state, with the legal fees of the publisher of the newspaper for advertising such land for sale; and the collector shall also be credited in his settlement of county or any other state taxes with the amount of taxes on all lands sold to the state. Land purchased by the state for taxes shall not again be sold for taxes until redeemed; but if a tax collector should erroneously sell any state lands, the auditor, in his settlement with such tax collector, shall credit him with the correct amount of state taxes on only such state lands as are certified by the land commissioner to belong to the state, and with the legal fees of the newspaper for publishing such lands for sale; and the collector shall also be credited in his settlement of county or other taxes with the amount of taxes on such lands certified by the land commissioner.