When lands bid in by the state have been sold by the state under any of the provisions of this chapter, the Land Commissioner shall certify to the Comptroller the amount, and the Comptroller shall draw his warrant on the Treasurer in favor of the judge of probate of the county in which the lands lie for the county and school taxes and the fees and costs due to the different officers of the county, specifying each separately; and, if the same cannot be ascertained from the records and papers in his office, the judge of probate, on notice by the Land Commissioner of such redemption or sale, must certify the same to him, and the judge of probate, upon the collection of such warrant, shall pay the same over to the officers entitled thereto or authorized by law to receive the same.