you cannot be diagnosed blindly over the internet but clearly if you have been having flank pain for several months you need to see a medical professional for a thorough medical history and a careful diagnostic examination that will most-likely including imaging studies. you could be having kidney stones or another renal problem an intestinal problem or even pancreatic. there are many possibilities -- diagnostic considerations that cannot be sorted out without a considerable work-up. please listen you your body's hints that something may be wrong and do the right thing. the only thing that you can do at this point. and seek medical care.
dull ache in flank area on both sides for several months seems worse when laying down. also have cloudy smelly urine. m 27 years old generally healthy in good shape. i'm just getting over the flu but have had some dull pain in my flank prior to getting sick. i dont have any other symptoms such as frequent/painful urination no fever or nausea etc.