Exclude some authors from query

Hey use this to grab all users excluding users with ID – 1,2,4

$blogusers = get_users(array('exclude' => array(1,2,4)));

Note –

The function get_users_of_blog() is depricated, so it’d be good idea to use get_users() function which supports excludeing of users by their IDs.

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