This appeal is upon the judgment-roll. The action was brought to foreclose a mortgage. The answer is a plea in bar.
The court found, among other things, that on the twenty-ninth day of July, 1889, one Flanagan was indebted to plaintiff in the sum of $1,032.07, and to defendant Casaccia in the sum of $600. Casaccia then assumed the debt of Flanagan to plaintiff, and gave his note for the same, which was accepted by the bank. Casaccia at the same time took from Flanagan his note secured by mortgage for $1,632.07 which was then assigned to plaintiff as collateral security for Casaccia’s note for $1,032.07.
At the same time Casaccia executed another note to the bank for $400, secured by a mortgage upon land of his own. This was also intended as collateral security *643for the note for $1,032.07 from Casaccia to the bank, and is the note and mortgage upon which this suit is brought.
The condition, then, was this: The bank held Casaccia’s note for $1,032.07, as collateral to secure it, a note and mortgage for $1,632.07, executed by Flanagan to Casaccia, and by him assigned to the bank, and a note of $400, secured' by mortgage executed by Casaccia to the. bank.
In May, 1893, the bank, as assignee of Casaccia, commenced an action to foreclose the Flanagan mortgage,, but did not make Casaccia a party to that action.
A decree of foreclosure was obtained; and the property-sold, and after paying costs the sum of $575 was left to. be credited upon the debt of Casaccia to the bank, leaving $808.78 still due.
Appellant claims that plaintiff should have brought suit upon the note for $1,032.07 against Casaccia; and in the same action sought to foreclose the mortgage against Flanagan for $1,632.07, and the mortgage involved in this suit for $400, and that, not having done so, he has waived the security on the mortgage sued on in this action, and perhaps the right to sue on the note for $1,032.07.
This contention is based solely upon section 726 of the Code of Civil Procedure, which provides that there can be but one action for the recovery of any debt secured by mortgage upon real estate. This statute is a limitation upon the rights which usually pertain to property, and the restriction will not be carried beyond the obvious import of the language used." Accordingly, it has been held that a judgment of foreclosure of a mortgage given to secure a promissory note does not bar the right, after sale and judgment for a deficiency, to a suit against an indorser of the note to recover such deficiency. ( Vandewater v. McRae, 27 Cal. 596.)
Also, that after judgment' of foreclosure and sale under a mortgage given by a nonresident of the state, *644upon whom personal service has not been obtained, a personal action may be brought to recover any deficiency remaining after sale of the mortgaged premises; although it was held that in such case the court had no jurisdiction in the foreclosure suit to enter a judgment for such deficiency.
In Blumberg v. Birch, 99 Cal. 416, 37 Am. St. Rep. 67, it was said : “It is true that the personal judgment docketed against the defendant was void, and also, that under the section of the code cited, there can be but one action for the recovery of any debt or the enforcement of any right secured by mortgage upon real or personal property. It does not follow, however, that after the mortgage security is exhausted, leaving a deficiency which is no longer secured, no new action on the note can ever be maintained.”
' The code itself recognizes this view in section 533, where an attachment is authorized, when the security has been lost.
In these cases when the personal action was instituted the debt was not secured by mortgage. If the mortgagee had voluntarily released his mortgage, his debt would then be unsecured; such a mortgagee, however, would not be entitled to his personal action. It would be an attempt on his part to evade the operation of the statute, while the other cases supposed would not be within the policy of the law, although two action's have been allowed upon a debt which was originally secured by a mortgage. The obvious purpose of the statute is to compel one who has taken a special lien to secure his debt to exhaust his security before having recourse to the general assets of the debtor. When he has done this, or when, without his fault, the security has been lost, the policy of the law does not prohibit a personal action.
The statute was complied with in the suit against Flanagan. The mortgage was not given to secure the principal debt of defendant to plaintiff. It was a col*645lateral matter. The suit to foreclose it was not an action for the recovery of the principal debt. It was an act for the preservation of the security. To do this was a duty imposed upon plaintiff by the contract of hypothecation. That the plaintiff thereby received part payment of the note was an incidental matter. The suit to foreclose was not an action to recover that debt, but to preserve the security.
A construction should not be given to a statute, if it can be avoided, which will lead to absurd results, or to a conclusion plainly not contemplated by the legislature. In this case there were two mortgages, both taken as collateral security. Suppose the mortgages had been upon land situated in different counties, and that the debt secured by one would be barred by the statute of limitations before the debt secured by the other fell due. Plaintiff could not have included both in one suit to foreclose, because such suits must be brought in the county in which the land or some part of it is situated; and one debt would either not be due when suit was brought, or would be barred by the statute of limitations.
Certainly, it was not intended to prohibit the ordinary transaction of putting up collaterals to secure an indebtedness, nor to limit such collaterals to mortgages which can be foreclosed in the same action.
The plea in bar, therefore, is not good. There is some greater plausibility in claiming that the mortgage in suit was given to secure the principal debt, than that such was the case with the Flanagan mortgage. The present note and mortgage were executed solely as security for the principal debt. There is no other consideration for the note, and it represents no other indebtedness. But conceding that this mortgage is one given to secure the principal debt, no other action has been brought to recover the debt secured by it, and—if the concession be made—no other could be brought on that note until this security has been exhausted.
I think the judgment should be affirmed.
*646Belcher, C., and Haynes, C., concurred.
For the reasons given in the foregoing opinion, the-judgment appealed from is affirmed.
Van Fleet, J., Harrison, J., Garoutte, J.