Welcome to the MedHelp forum!
A pain in joint that improves with movement is usually due to osteoarthritis. Pain on either sides of the knee is usually related to meniscal tears, injuries to the collateral ligaments, and even to arthritis. Hence, please consult an orthopedic specialist for a confirmed diagnosis. Apart from X-rays, you may need to undergo a MRI of the knee.