Unable to prepare MySQL statement (check your syntax) - Undeclared variable: GREY