Thanks for your query.Based on the facts that you have posted it appears that you have Acute on chronic prostatitis
Please consult qualified urologist
for clinical and digital rectal examination
and get your routine urine and urine culture done to confirm the diagnosis.
Please take broad spectrum antibiotics along with anti inflammatory medication like Diclofenac
twice daily .
Get the prescription of medicines from your family Physician.
Ensure to drink more water and avoid sexual activities till you get cured completely.