If you are a sexually active female, this could easily be a urinary tract infection.
A physician would need to diagnose and treat this. Even if this is not the cause-your physician needs to see you and get more information to diagnose. Drink lots of water in the mean time.
Answer assisted by Holly Barth, Medical Student