Hide Users by user role in Worpress

you could use wp_list_authors for list your authors in your user page. Put a look here: https://codex.wordpress.org/Function_Reference/wp_list_authors Does it help you?

EDIT: According to our communications:

$users_array = array();
$users = get_users('role=author');
if(count($users) > 0){
    foreach($users as $user){
        $users_array[] = $user->ID;
    }
}

add $users_array instead of array(1, 3, 5) …

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