Middle/Upper back pain, hurts more when I move

Patient: Hi there, I have severe back pain that comes and goes. It starts about 5cm below my shoulderblades and ends around where my ribs end. I generally get a lot of knots on my right side from my neck down to my lower back but I don’t feel any knots right now. It was just on my right side yesterday, but today it hurts on both sides. More so when I move or walk. If I sit in a certain position it hurts less but if I straighten my back I feel like crying from the pain. Any idea?

Symptoms: Back pain