ParseError thrown

syntax error, unexpected '$where' (T_VARIABLE)