Pain and sweating at night

Patient: I have bad sweats at night so bad infact you would think I had wet the bed sweating can happen at anytime ive a pain under my left rib cage with pain in my back what could be causing this

Doctor: