Hi @youngwolf0
Your code looks perfect, so for that great work.
Your next step is to debug the function to find out at what line it is failing.
Firstly, turn on DEBUG MODE in your wp-config.php file and then use a simple script like so to test that your loop is working:
<?php
$user = "user_" . $member->ID;
echo '<pre>';
print_r( $user );
echo '</pre>';
?>