Just an additional 2 cents: Pain such as you describe can be originating in the lower back -- which might be unhappy from too much sitting. I had this for a long time before I had a correct diagnosis (Doc thought it was bursitis in my hip). I eventually found a doctor whose hammer actually fit my nail, and poof! All better. (Well, OK, it took a few months of exercise and wearing an elastic brace for a while -- but it did work!)
And the best news -- that was over 15 years ago, and it has stayed cured! (Anytime I start to feel a twinge I go back to my stretching and exercise routine.)
I hope this helps.