Thanks for the replies guys, I do have a tilted kneecap so it makes sense that it's probably that. It feels like it's coming from the middle back of my knee, and like it locks back a bit when I straighten it.
Thanks to whoever reported that previous post, it was pretty strange.