[syntax=php]$user_info = fetch_user_info($_SESSION['uid']);[/syntax]
In the first code twice, so one of those needs to be removed (the first one)
And can you see what the fetch_user_info function is returning by adding
[syntax=php]var_dump($user_info);[/syntax]
on the page somewhere and seeing what the output is.
If you get bool(false) it means that the query is either failing for some reason (and you have error_reporting off) or it is returning 0 rows, in which case you should check the value of the session variable to make sure it is what you expect.
that's how I would debug this anyway
![Wink ;)](./images/smilies/icon_e_wink.gif)