syntax error: update table_branch SET viewed=1 where id=