Hello and welcome to e health forum.
From the description of your history it seems that you might be having pyelonephritis or hydronephrosis of the kidney, as a result of scarring of the kidneys.
The best way would be to consult a urologist, who can order tests including a IVP and a urinalysis, urine culture, etc, to know the main cause of your symptoms.