In any action for replevin in any court of this state, it shall be permissible for the plaintiff to join with the cause of action in replevin a cause of action founded on a debt claimed to be owing to the plaintiff if the debt shall be secured by a lien upon the property sought to be recovered in the cause of action in replevin. Upon the rendition of any judgment in replevin in any case wherein there shall be joined a cause of action from debt, judgment for such debt shall be stayed pending the determination of the amount thereof remaining due to plaintiff after any sale of the property pursuant to such liens.
Okla. Stat. tit. 12, § 1585