
    George E. Lovett, Respondent, v. City of New York and Others, Defendants, Impleaded with Harden Brothers Trucking Company, Appellant.
    Second Department,
    October 16, 1908.
    Assigment as security for loan — when a ssignee of sub-contractor may sue in equity to establish prior lien— parties defendant —mechanics’ liens.
    One who has loaned money to-a sub-contractor and taken an assignment of moneys to become due under the contract as collateral security, may, after the completion of the contract, sue in equity to have his lien upon moneys duo the sub-contractor declared to be prior to mechanics’ liens without waiting for the other lienors to sue in foreclosure.
    In such suit in equity the assignee may make those who have filed mechanics’ liens parties defendant, together with his assignor, the owner and the contractors.
    Appeal by the defendant, the Harden Brothers Trucking Company, from an interlocutory judgment of the Supreme Court in favor of the plaintiff, entered in the office of the clerk of the county of Kings on the 22d day of May, 1908,. upon the decision of the court, rendered after a trial at the Kings County Special Term, overruling the said defendant’s demurrer to the amended complaint.
    
      G. H. D. Foster [John, C. Wait with him on the brief], for the appellant..
    .William H. Good, for the respondent.
   Gaynor, J.:

The sufficiency of the complaint cannot be tested as one for an accounting. This is not a suit for an accounting,, but to determine the rights of several claimants to. a fund; the accounting prayed for being only incidental to the giving of the main relief sought. Cooper & Evans contracted with the city to furnish certain material and do certain- work. They subcontracted for a part thereof with Dunseath Brothers, and the latter, for advances made by the plaintiff to them, assigned to him all moneys due or to grow due on their contract as"collateral security. The said contracts have both been completed, and there is money due from the city to the said contractors and from them to their said subcontractors. Several mechanic’s liens have been filed against the fund by corporations and persons who did work for or furnished materials to the said subcontractors. This suit is brought to have such liens declared subsequent and subordinate to the plaintiff’s rights under the said assignment of the fund to him, and to have it paid to him to the extent of his advances. The city, the contractors, the said subcontractors and the said, lienors, are made defendants. One of these lienors, a corporation, demurred tó the complaint on the ground that it did not state facts sufficient to constitute a cause of action, and appeals from the interlocutory judgment overruling the demurrer.

'Was the plaintiff obliged to await the possible bringing of a suit to foreclose.the liens during the period limited by statute therefor, or was he entitled to bring this suit at once to have the rights of all claimants to the fund determined ? If the plaintiff should bring a common law action against the said contractors for the amount due him, they would have the right to interplead the lienors, and thus turn the action into one in equity, and the city if sued could do the same thing; and from this it follows that the plaintiff may bring such a suit at the outset (Deering v. Schreyer, 171 N. Y. 451). And if the amount due the plaintiff should be less than the amount due from the contractors to his assignors — in other words if they have assigned only part of their claim to him — his way of collecting it is not by a common law suit (the rule against splitting claims or causes of action being in the way), but by a suit in equity, making both his assignors and their said debtors defendants; and there would be no reason for not making the lienors or any other persons interested defendants also (Chambers v. Lancaster, 160 N. Y. 342).

Moreover, this lienor cannot plead for the contractors, but only for itself. If the contractors are content to litigate in equity under, this complaint, the lienors are necessary parties, and cannot object to a court of equity,'for their liens can be adjudicated upon nowhere else. If the contractors had the right to insist on being sued at common law, they could nevertheless submit to equity, and it is not for the lienors, who must get into a court of equity anyhow, to object.

The judgment should be affirmed.

Woodward, Hooker, Rich and Miller, JJ., concurred.

Interlocutory judgment affirmed, with costs.  