It sounds like you may have patellar tendinitis one on side.
This may reflect a tightness or weakness in your hips or hamstrings or other subtle anatomic variant that makes you predisposed.
Treatment is a period of rest, appropriate stretching, ice, anti-inflammatories, and eccentric strengthening directed by a trainer or therapis. Other modalities, such as ultrasound, may help. See a doctor.