I want to get on those users their meta value are like “AGENT” .. but this query is not working

Try this

global $wpdb;
$sql = "SELECT display_name FROM ".$wpdb->prefix."users WHERE id IN (SELECT user_id from ".$wpdb->prefix."usermeta where meta_value LIKE '%agent%')";
$result = $wpdb->get_results($sql);

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