Waking up with sore left flank for years

left flank pain for years. mid back started hurting recently

i got both flank pain pls update me yours