In case of any petition or application for the refund of any money paid as aforesaid, filed with any mayor and alderman or any other municipal or other board, circuit court, or other authority having the control or the administration or the supervision of the receipts or disbursement of any taxes collected under, or under color of, any law mentioned in Section 40-10-164, it shall, upon proper proof, pay or order paid all such money so erroneously paid, and the tax collector, custodian, disbursing officer, or agency under it must obey such order and also pay such costs as may in such petition or application or suit be awarded, adjudged, or decreed in favor of such person making such erroneous payment; but this section shall not apply to assessments where owners of property received special benefits or where taxes were due but irregularly assessed thereon.
Ala. Code § 40-10-165 (1975)