Thanks for your query.Based on the facts that you have posted it appears that you have acquired UTI due to sex.
Please get your routine Urine test done to confirm the same and start taking some antibiotic like Ciprofloxacin
along with some urine alkaliser twice daily . Get prescription of these drugs from your family Physician.
Ensure to consume more water to keep your urine dilute.