Flank/Back Discomfort

Lily

For the past 3-4 weeks I've been having discomfort and soreness in the flank area on my back. It usually goes away with laying down or walking a bit. I'm still nervous because some people say it could be something to do with the kidneys and info I got from my doctor said to call if there's flank pain. Thoughts on if it's serious?