Thank you for your question. It is possible that you are experiencing muscle spasms. The muscle which when spasming occurs results in shortening of the leg and back pain is the Psoas muscle. The psoas muscle primarily flexes the hip and spinal column and is located in the lower back near the spine. If this spasms, it can result in inadvertent flexion of the hip given a shortened appearance of the leg, and lower back pain.
In order to treat this you will have to be evaluated by a doctor to determine what is causing this. You may be prescribed to under go some physical therapy treatment for the prevention of these spasms in the future. Please see you doctor for further evaluation.
Thank you for choosing Askthedoctor.com
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.