I am calling a MySQL query that returns an array of user IDs. I want to pass this array if IDs to get_users to create an array of users, but I can't seem to get the code right.
My code is currently....
// get all users who have done something in the last 20 mins, or just the top 30 if there are more.
$get_user_activity='SELECT user_id FROM wp_wol WHERE last_action_date >= ( NOW( ) -2200 ) ORDER BY last_action_date DESC LIMIT 0 , 30';
$user_list = mysql_query ( $get_user_activity);
$args = wp_parse_args( $args, array( 'include' => $user_list ));
$users = get_users( 'include' => $args );
Thank you in advance.