When the action is against several defendants, if it is proved on the trial that any of them occupy distinct parcels in severalty or jointly, the plaintiff shall elect, at the trial, against which he or she will proceed; and such election shall be made before the evidence in the action is closed, and the action shall be dismissed as to the defendants not so proceeded against.
735 ILCS 5/6-125