I agree with shasadah

The first thing that popped in to my head when you mentioned your symptoms was ankylosing spondylitis. Your doctor will probably do some blood tests looking for the HLA-B27 marker which is common in people who have the condition. This along with a clinical examination will help to confirm the diagnosis.

Good luck.