According to Swami Ramdev, you can get rid of joint and knee pain by doing Mandukasana regularly as well as other Yogasanas.