Typically the responding officer will issue the ticket to who he thinks is at fault. This is not the end of it as you are still innocent and have to be proven at fault in court.