This is an appeal by the Attorney-General in behalf of the defendants, from an order denying defendants’ motion for a judgment upon the pleadings under section 547 of the Code of Civil Procedure.
The complaint alleges “ that these defendants were created by Chapter 150 of the Laws of 1837 of the State of Mew York, and acts amendatory thereof and supplemental thereto.” '
The first cause of action alleges that on October 13, 1905, the defendants entered into a contract to sell to William H. Duncan, plaintiff’s assignor, a certain piece of property for the sum of $7,500, of which $500 was payable and was paid on the execution of said contract, the balance being payable upon delivery of the deed. The assignment of the contract to plaintiff and his expenditure of $115 in examining the title is duly alleged, as well as his readiness and willingness to carry out the contract, and defendants’ refusal to do so. The second cause of action contains similar allegations as to another piece of real estate, the consideration and the name of the person contracting to purchase being different. The third and fourth causes of action refer to the same pieces of real, estate described in the first and second causes of action respectively, the allegations as to the contract of sale being that Theodore H. Smith, one of the commissioners for loaning certain moneys of the United States, entered into a contract with plaintiff’s assignor, and that the refusal to carry out the contract on the part of defendants was due to the refusal of Morris Golland, another of said commissioners, who refused to execute the deed. The relief demanded is that defendants be required to specifically perform said contracts ; declaring that the sum paid down and the expense to which plaintiff has been put be declared to be a lien upon the property; if defendants have conveyed said properties that they be compelled to account to plaintiff for the proceeds of the sale, and in case the contract cannot be specifically performed that plaintiff have judg*489merit against the defendants for his said down payments and his damages.
The motion for judgment in this case is equivalent to a demurrer to the complaint for general insufficiency. This action, as the complaint discloses, is one for the specific performance of an alleged contract for the sale of real estate, with a prayer for alternative relief in case specific performance cannot be enforced. In such a case the plaintiff’s right to any relief at all depends upon his ability to show that, so far as he is concerned, he is entitled to specific performance. Alternative relief by way of lien or damages is only given when the plaintiff has established his right to specific performance, which, however, is denied because it cannot be enforced, as for example where the defendants’ title is defective or he has already conveyed the property to another. (Matthews v. Matthews, 133 N. Y. 679, 682; Cooley v. Lobdell, 153 id. 596, 603.) The plaintiff, therefore, can have no judgment in this action unless upon the allegations of his complaint he has made out a case entitling him to specific performance. The defendants are statutory officers and are sued as such. Their rights, powers and duties are prescribed by public statutes of which any one dealing with them is bound to take notice. Section 6 of chapter 360 of the Laws of 1898 provides that before the delivery of a deed by the loan commissioners for and on behalf of the People of the State of New York “ every sale shall be approved in writing by the Comptroller of the State of New York.” Hence, every contract made by the commissioners for the sale of lands must be read as if the clause providing for the delivery of the deed made such delivery expressly contingent upon the written approval of the sale by the Comptroller. Such approval is evidently intended to be something more than a formal ministerial act and involves the exercise of judgment and discretion. The execution of such an approval is a condition precedent to the execution of a deed, for without such approval a deed cannot lawfully be executed. Therefore, until the Comptroller has approved the sale, of which there is no allegation in the complaint, the commissioners cannot be compelled to specifically perform the contract of sale. Mo case being made for specific performance, no judgment establishing a lien or for an accounting or for damages can be recovered. As to the third and fourth causes of action it is *490clear that no enforcible contract was made. The allegation is that it was made by only one of the commissioners. To be valid such a contract must be executed by both commissioners (Powell v. Tuttle, 3 N. Y. 396; Olmsted v. Elder, 5 id. 144; York v. Allen, 30 id. 104), unless, as is not alleged here, there was when the contract was executed but one loan commissioner in the county or but one able and qualified to act. (State Finance Law [Laws of 1897, chap. 413], §86.)
Mor does the complaint state a sufficient cause of action against the commissioners as such either for a return of the deposit money and expenses or for damages for non-performance. As loan commissioners the defendants are merely agents and officers of the State. Hence, if they received the earnest money as commissioners they received it as State officers and it became at once a part of the State funds, or of a fund in the custody and control of the State from which it cannot be taken except in the manner prescribed by the Constitution and statute, that is, by means of a legal appropriation. (Canst, art. 3, § 21.) Finally, we are of opinion that this court has no jurisdiction of the subject-matter of the action. It is virtually an action against the State to compel the conveyance of property to which it holds title, or in the alternative the payment of money out of its treasury. The title to the property is in the State (State Finance Law, § 91) and the fund from which the loan on the property was made and into which the proceeds of a sale must be paid, consists of money received by the State from the United States, for the safekeeping and repayment of which the “ faith of the State is inviolably pledged.” (State Finance Law, § 82.) This action is, therefore, one brought against State officers as representing the State’s action and liability, thus making the State, though not a party to the record, the real party against whom the judgment will operate. Such an action is in substance one against the State of which this court has no jurisdiction. (Pennoyer v. McConnaughy, 140 U. S. 1; Matter of Ayers, 123 id. 443.) If the court has no jurisdiction of the subject-matter of the action, neither the defendants nor the Attorney-General can be held to have conferred jurisdiction by appearing generally. It follows that the motion for judgment should have been granted. It is unnecessary to consider now what redress plaintiff may obtain by *491suit against the commissioners personally or by an appeal to the Court of Claims.
The order should be reversed, with ten dollars costs and disbursements, and motion granted, with ten dollars costs.
Ingraham, Lahghlin, Clarke and Houghton, JJ., concurred.
Order reversed, with ten dollars costs and disbursements, and motion granted, with ten dollars costs.