confused!

Ky
So for about two months now, I've been experiencing a burning while peeing after sex. I went to the doctor, and she diagnosed me with Bacterial Vaginosis. I took the medication, but my problem didn't go away. What's going on?!