If you want to cover your bases, you sue your landlord and the friend who signed that document, and let a court decide who should pay. If you aren't interested in suing your friend, sue your landlord, have your friend come to court to explain what happened, and see what the court decides.