Reduce number of SQL queries inside WP_Query loop to fetch author data

After a lot of trial and error I learnt that WP_User_Query takes an argument fields which can be set to 'all_with_meta'. This reduces number of queries to two for any number of users that are fetched in a single go and also provides benefits of caching. Usage would look like:

$user_query = new WP_User_Query( array('include' => $post_authors, 'fields' => 'all_with_meta') );

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