illegal character in query fixed