probably just patellar misalignment - but you need to get that confirmed
if it is, it's easy to fix: 1) strengthen VMO quad muscle on inside of knee (wall-sits/single leg squats) 2) loosen off the IT band on the outside of the thigh (lying on a foam-roller/tennis ball)