— This is an original proceeding in this ¡court, whereby the plaintiff seeks by certiorari to have reviewed ■and annulled an order made by the district judge in an insolvency proceeding. In November, 1897, the plaintiff was adjudged to be an insolvent debtor.' Subsequently, upon proper ■notice, the creditors met in open court, and elected J. B. West, . Esq., assignee of said insolvent’s estate. It appears that only •two creditors had at the time of said election filed claims •against said insolvent’s estate. The First National Bank of Moscow, being one of said creditors, filed as claims two unse■cured promissory notes; one for $162.50, and one for $171.20. •B further appears that said bank also held a promissory note •■against said insolvent for $872.50, which was secured by a chat"tel mortgage on certain crops of wheat and hay and other property; that on the eighteenth day of January, 1898, said bank 'filed its petition in said district court, which showed that under •said mortgage the insolvent had turned over to the bank about ■one thousand and three and one-half bushels of wheat. It is ¡also alleged that said Madison harvested and kept in his posses■sion a large amount of the hay and grain included in said mortgage, and disposed of the same, and no account thereof had been ■made to said bank. The prayer of said petition is as follows: *140“1. That said Martin Madison shall be required to appear before said court, or the judge thereof, at such time as may be-designated, to answer upon oath as to the amount of grain and hay obtained or grown and harvested from said mortgaged premises for the year 1897; 2. That an order be made herein directing that sale of the wheat now in possession of said corporation above mentioned in such manner as may seem best for the interests of all parties concerned, and the proceeds of such sale-credited upon said promissory notes secured by said chattel mortgage, and for such other and further relief as may seem just and equitable in the matter.” Upon said application an order was made directing the sale of one thousand and three- and one-half bushels of wheat, the warehouse receipts for which were in the hands of said mortgagees, and also ordered that a citation be issued to the plaintiff, Madison, requiring him to-appear before the judge of said court at chambers in the city of' Moscow on the twenty-sixth day of January to answer under-oath in regard to the amount of grain and hay grown and harvested by him in the year 1897 upon the premises described in said chattel mortgage. On the twenty-sixth day of January, 1898, said insolvent appeared as required by the citation aforesaid, and certain testimony was adduced in regard to the hay and grain covered by said chattel mortgage, and the judge-found that said Madison had received four hundred and fifty-eight bushels of wheat, which he had not accounted for to said bank, and that the value of the same was fifty-seven cents per bushel; that he had received twenty tons of hay, worth three dollars per ton, which he had not accounted for to said bank. An order was thereupon made requiring said Madison to account to said bank for four hundred and fifty-eight bushels of wheat, or its market value, fifty-seven cents per bushel, and also-for twenty tons of hay at three dollars per ton. Counsel for the plaintiff, both before and after said order, objected to the making of said order, on the ground that the court had no jurisdiction to make the same. Thereupon the plaintiff made application to this court for a writ of review, which writ was issued, and upon the day fixed for its return the defendants moved to quash the writ on several grounds.
*141The first ground was that the petition did not state facts sufficient to warrant the issuance of said writ. After a careful consideration of the petition, we think its allegations are sufficient to warrant the issuance of the writ.
The second ground of said motion to quash is that the, application for the writ is not made by the party beneficially interested. Counsel cites section 4963 of the Revised Statutes which declares, inter alia: “The application must be made on affidavit by the party beneficially interested.” It is contended that the insolvent is in no wise interested in this matter, and that only the assignee and creditors are, and therefore they only could commence this proceeding. We take it that the insolvent is most vitally interested, especially when an order is made which might prevent his final discharge as an insolvent. If he is unable to comply with the order complained of, and it stands unchallenged, it might prevent his final discharge. The third ground goes to the affidavit. It was made by the attorney for the plaintiff, and it is contended that it must be made by the party beneficially interested. There is nothing in this contention. Section 4963 of the Revised Statutes declares that the application for a writ of review must be made on affidavit by the party beneficially interested. It does not require the verification to be made by the party beneficially interested. The application is the complaint, and it must be made on affidavit, and under section 4199 of the Revised Statutes, the attorney may make the affidavit when the facts are within his knowledge. The attorney states in his affidavit that he knows all of the facts stated in the petition and that he has examined all of the proceedings mentioned in said petition, and that he believes that said court acted without jurisdiction in making said order. The petition shows that the attorney who had examined all of the proceedings complained of would be better acquainted therewith than the client. We think the affidavit sufficient, and under the facts the attorney was authorized to make it.
It is also contended that the order complained of is not finally determined. We are at a loss to know how a matter could be more “finally determined” than this was. The judge entered *142an order directing the insolvent to tnrn over to the bank four hundred and fifty-eight bushels of wheat and twenty tons of hay, or to pay to the bank the value of the same. We think the matter was finally determined, so far as that proceeding was-eoncerned. The motion to quash must be denied.
In answer to said writ the defendants filed herein the entire-record of the proceedings in said matter. But one question is-raised by the return, and that is, Had the court jurisdiction to make said order? It appears that the First National Bank of Moscow had several claims against the plaintiff at the time-he was declared to be an insolvent debtor, two of which were-unsecured, and one or more secured by chattel mortgage. Those not secured were filed against said insolvents estate, and the bank was admitted as a creditor to the extent of their amount.. But the bank had not been admitted as a creditor for said sum of $876.50 secured by said chattel mortgage, nor could it. be admitted as a creditor for said amount unless it released', or conveyed its claim upon the mortgaged property to the as-signee. Section 5911 of the Bevised Statutes, provides as follows: “When a creditor has a mortgage or pledge of real or personal property of the debtor, or a lien thereon, for securing the payment of a debt owing to him from the debtor, he must-be admitted as a creditor only for the balance of the debt,, after dediieting the value of such property, to be ascertained by agreement between him and the assignee, or by a sale thereof, to be made in such manner as the court or judge may direct; or the creditor may release or convey his claim to the,-assignee upon such property and be admitted to prove his whole-debt. If the value of the property exceeds the sum for which, it is so held as security, the assignee may release to the creditor the debtor’s right of redemption thereon on receiving such excess; or he may sell the property, subject to the claim of the creditor thereon, and in either case the assignee and creditor respeetively must execute all deeds and writings necessary or proper to consummate the transaction. If the property is not sold or released, and delivered up, the creditor must not be allowed to prove any part of his debt.” Said section provides», when a creditor has a mortgage on real or personal property of' the debtor for securing the payment of a debt, he must be ad*143mitted as a creditor only for the balance of the debt after det-ducting the value of such property, to be ascertained by agreement between him and the assignee, or by sale thereof, to be made in such manner as the court or judge may direct, or a creditor may be allowed to prove his whole claim if he releases or conveys his claim on the property to the assignee. A person having security for his debt must look to his security to the extent of its value unless admitted as a creditor as provided by said section. The defendant, First National Bank, stood on its security. It made no application to be admitted as a creditor for any balance of its said debt after deducting the value of the mortgaged property. It did make application to sell the wheat that had been turned over to it under said mortgage, which was granted, and the wheat sold for $572, and said sum indorsed on said indebtedness. As shown by the record, the value of the mortgaged property was only sufficient to satisfy the mortgage debt, and, if the mortgagee had proceeded, and foreclosed the mortgage, there would have been nothing left from the sale of the mortgaged property to go* to unsecured creditors. In case of mortgaged property the assignee has the right of redemption, or may sell the property subject to the claim of the creditor. (See Bev. Stats., see. 5911.) In the case at bar the creditor stood on his rights .as mortgagee, and, if the mortgagor had disposed of any of the mortgaged property in violation of the terms of the mortgage, the judge could not grant him relief in insolvency proceedings. The mortgage debt had not been proved nor allowed in the insolvency proceedings, nor had the mortgaged property passed into the hands of the assignee. So far as said debt and mortgage are concerned, they are strangers to the insolvency proceedings, and the judge had no jurisdiction over them in said insolvency matter, and no jurisdiction to make the order complained of. The order complained of must be set aside, and the district judge is directed to set the same aside, and dismiss the application for the examination of the plaintiff. Costs are awarded to the plaintiff.
Huston and Quarles, JJ., concur.