Here is a scenario: suppose I am going somewhere with my friend. And my friend gets into an argument with a few guys that leads to a fight. And I have nothing to do with it. But they start beating us. And suddenly my friend flees the scene. Now I want to ask him in a complex sentence why he left me alone to be beaten.
Having me been beaten, why did you run away?
Having had me been beaten, why did you run away?
Having had me beaten, why did you run away?
Or any other suggestion how to say this.