Welcome to HCM,
After going through your history,you may be having Urethritis
which may or may not be Gonococcal so you need to see the Physician urgently to prevent complications.As can occur in sexually active person.
You need to take a swab and culture and sensitivity, and other blood test
as required and treatment would be course of antibiotics suitable to treat the infection.
If there are such infection which can be transmitted your partners must be treated to prevent spread of disease.
If it turns out simple UTI then also please take proper treatment and take care in future.
Please practice safe sex
Please take care