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