Thanks for your query.Based on the facts that you have posted it appears that you have developed acute UTI following unprotected sex .
Please get your routine urine test and urine culture done to find out the organisms causing this infection and antibiotics to which they are sensitive to.
Please consult qualified urologist
for clinical evaluation and further treatment as per culture report.
I think this should settle down within a week,