Hi and welcome to HCM.
it sounds like urinary infection which is very common and usually caused by bacteria. YOu should visit your GP and do urine analysis and uroculture. He wiill probably give you an antibiotic and it should be healed after 10 days. Also it can be STD but the procedure is the same. If this isnt helpful you should do ultrasound
to check your prostate
.There can be sign of enlargement or stones. Wish you good health.