If there is a deficiency of proceeds from the sale of property on a judgment for enforcement of a lien, a deficiency judgment may be entered against a party personally liable for the deficiency in the same manner and with the same effect as in an action to foreclose a mortgage.