Update user_email via php – WP 4.7

I got it to work using $wpdb->update:

$ID = $current_user->ID;
$email = sanitize_email($_POST['email']);
$wpdb->update($wpdb->users, array('user_email' => $email), array('ID' => $ID));

Not exactly sure what the issue was with wp_update_user unfortunately.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)