fix sql syntax error on set