Exclude admin from user list

You could use user_can( $user_id, ‘manage_options’ ) to gauge the ids in the users array and unset($users->[$x]) the appropriate row.

I would personally use

$users = array();    
foreach ($results as $user)
  if (!user_can( $user->ID, 'manage_options' )) 
    $users[] = $user;

But that’s just me.

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