Knee Pain on One-Leg Box Squats

So after I got done box squatting today, I was doing some unilateral work and decided to do one-leg box squats. Every time I went down, I would get this awful pain in my knee cap. It’s not a ligament issue or anything, just like somebody hit it with a hammer. Has anybody else had this problem?

Luke