Have Urology Questions? Ask a Urologist Online.
The symptoms you describe sounds like you may be having bladder spasms. This could be from a bladder infection. There's no way to narrow down what type of infection you may have based on your symptoms. Any STD could potential he cause your symptoms as well. If you had risky sexual relations, you definitely need to get into see your doctor to have STD testing done as well as a urine culture to see what antibiotics you need to treat this. Hope this helps
If this was an STD, typically you would have some discharge from the urethra. Your symptoms are more consistent with a bladder infection. You could get any type of infection whether you have protected or unprotected intercourse.