If your patella is subluxing(trying to slide out of joint), was there trauma? If this was not traumatic in origin, it is best treated with strengthening of the quad muscles, taping, bracing
and neuromuscular training.
If traumatic or non-traumatic failing routine care, the cause needs to be determined, such as bad bone alignment or injured ligaments. If a correctable problem, surgery possible.