What's wrong?

It hurts when I pee and the doc took my urine sample and said I had no infections and am fine then what's causing it?