you might have a genetic incomptibility with codeine... some people don't produce the right enzyme to activate it, so it won't work...
either that, or your knee pain is psychological/neurological. in which case, standard pain killers won't necessarily touch it.