¶1Antone Hunolt, Frank Boone and Wellington Buford were the judges of the county court of Knox county in 1885. As such judges, they caused warrants to be drawn upon and paid out of the county and township school funds for other than school purposes ; and this is a suit against them to recover damages for the wrongful use of such funds. The petition avers that the defendants, as such judges, unlawfully, knowingly and fraudulently misapplied the funds, setting out the various warrants drawn and paid. The answer disputes the right of the county to prosecute *71this suit. It is then averred, in substance, that the county was financially embarrassed; that, to pay pressing county demands, the county court borrowed the school funds, that the defendants were advised and believed they had a right to thus use them, and being ignorant of the law they so used them in good faith.
¶2The trial court disregarded the averments as to the township funds, but gave judgment for the plaintiff for the county school funds misapplied in the sum of $2,691.60, from which judgment defendants appealed.
¶3The evidence discloses these facts: The county had no money in its treasury, and county warrants were depreciated. The county was indebted to the insane asylum for care of the insane poor, and to pay this and some other county debts the judges caused warrants to be issued upon and paid out of the county school fund. Before doing this they consulted the prosecuting attorney. He seems to have advised them that technically they ought not to use the school fund for such purposes, but that they could do so by protecting that fund by a warrant, meaning a county warrant, payable to the school fund. The defendants say Judge Wilson, formerly circuit judge, advised them it was better to borrow the school fund than to sell county warrants at forty or fifty cents on the dollar. They had .information that other counties were doing the same thing. The transaction is designated on the county court records as a loan, but it does not appear that any warrant was ever issued payable to the school fund.
¶4
¶5In this state we have three distinct permanent school funds, namely, the state, county and township funds. The county fund belongs to the county, and is a different thing from, the township fund. R. S. 1879, secs. 7073, 7103. While the county school fund is set apart by law for special purposes, still it belongs to the county, and it must follow that the county is the proper party to sue the agents of the county for its mismanagement. We entertain no doubt but this suit is properly brought in the name of the county.
¶6
¶7
¶8We come then to these questions, whether there has been a breach of duty on the part of the defendants; and, if there has, then whether that breach of ■duty furnishes the county a cause of action for the use of the county school fund.
¶9As to the first question there can be no doubt. 'The eighth section of article 11 of the constitution points out from what source the county school fund *74shall be derived, and provides that the same “shall belong to and be_ securely invested and sacredly preserved in .the several counties, as a county public-school fund; the income of which fund shall be faithfully appropriated for establishing and maintaining free public schools in the several counties of this state.”1 And to the same effect is section 7103, Revised Statutes,. 1879, and amended in 1881. It is made the duty of' the county courts to loan this fund only on unincumbered real estate with personal security in addition-thereto; and the income can be used only for the-payment of teachers’ wages. Sec. 7073. The use of' these funds for other county purposes was an act in direct violation of the constitution and laws of this-state. The fact that the defendants treated the use of these funds as a loan to the county does not help the-matter, for there is no warrant in the law for any such transaction. That the defendants, in using this money as they did, violated the plain letter of the law must be-conceded.
¶10The next question is whether the county, suing to-the use of the school fund, can recover the damages-which that fund has sustained by the illegal use made-of it by the defendants.
¶11Our county courts and the judges thereof perform many duties, some of which are judicial, others quasi-judicial, and others purely ministerial. It has been held that members of that court act ministerially in. causing a suit to be brought in the name of the county to the use of the township school fund. Washington Co. v. Boyd, 64 Mo. 179. So directing warrants to be issued on different funds in payment of debts is a ministerial, not judicial, act.
¶12It is a well-settled rule that where the law requires absolutely a ministerial act to be done by a. public officer, and he neglects or refuses to do the act, he is *75liable in damages at the snit of a person injured. In such cases a mistake as to his duty and an honest intention is no defense. Amy v. Supervisors, 11 Wall. 136; Ins. Co. v. Leland, 90 Mo. 177; Mechem on Officers, sec. 664.
¶13But where the public officer is by law vested with discretionary ministerial powers, and he acts within the scope of his authority, he is not liable in damages for an error in judgment, unless guilty of corruption or a wilful violation of the law. He is not liable for an honest mistake. This principle has been asserted by this court under a variety of circumstances. Reed v. Conway, 20 Mo. 23; Pike v. Megoun, 44 Mo. 492; McCutchen v. Windsor, 55 Mo. 149; 48 Mo. 254; Edwards v. Ferguson, 73 Mo. 686; Washington Co. v. Boyd, 64 Mo. 179.
¶14Noy while the county court and the judges thereof have vested in them discretionary powers as to the management of this county school fund for school purposes, they have no discretion whatever as to the uses to which it can be applied. The use of the fund for the payment of ordinary county debts was an act in direct violation of the constitution and laws creating that fund, and was, therefore, nothing short of malfeasance. That the judges would be liable in a private suit to persons especially injured for such a violation of law is clear, and we can see no reason why they are not liable to the county.
¶15The county, it is true, received the benefit of the money thus diverted since it was applied in the payment of ordinary county debts. But the counties in this state are ^{«si-corporations only, with limited corporate powers. The county owned this county school fund, but it owned and held the same for a specific purpose. As to this fund the county is rather a trustee of a trust declared by law than the unqualified *76owner. The county court and the judges thereof were the agents of the county, but they were agents appointed by and under the general laws. Their authority is limited and defined by law. As the defendants have misapplied this fund, and that, too, without any authority of law whatever, they must be held accountable to the county as trustee of the fund for such unlawful act. As they had no discretion by which they could' apply the fund to the payment of ordinary county debts, it can make no difference that the act was not corrupt or a wilful violation of the law, and so the trial court ruled. This fund should be replaced by those who diverted it.
¶16As the county received the benefit of the money thus misapplied, it is but simple justice that it should return to the defendants from its general revenues such sums as they may be obliged to pay in restoring .this county school fund, But the defendants cannot complain that warrants given them are depreciated.
¶17The judgment is affirmed.