Could be a bladder or uti infection, also do you have heavy bleeding on your periods? Might want to have them check for Endometriosis.
Do you have itching, or does it burn any other time?
You might need to try some sort of lubricant when having sex, having sex and not being (TMI) wet can irritate the vagina and when you pee it stings like crazy