One sided back pain

Hi everyone

Been suffering from this very painful side pain in my back. I’m in agony when I try to walk, pee or sit, but the pain comes and goes. Had the same pain 2 weeks ago and was told it’s a uti / kidney infection and was given anti biotics. Could it be back or is it kidney stones? Please help 😩😩