Stiffness and pain in the hips after sitting for long hours in your chair could be because of bent knees and the same posture over an extended period of time. A good idea to relieve this pain would be to stand up from your chair and flex your legs at regular intervals. Sitting in the correct posture with your back straight can also help prevent pain in your back and hips.