Hello, At 39 years of age the pain could be because of various reasons, if is associated with clicks its mostly meniscus injury. Or if the pain is the front part of knee, it can be a condition called as chondromalacia patella. But all these can be treated, nothing to worry about. To come to a definitive diagnosis, more detailed history and clinical examination is needed.
Next Steps
If possible take an Xray and MRI of the knee joint. xray sees bones. mri sees ligaments and other soft tissues.
Health Tips
Start doing Quadriceps strengthening exercises as tolerable.