Okay, your code needs a little work. Anyway, the problem you were asking is caused by the fact that $row is still an object with the results from $query1. Simply do $fwd_users = mysql_fetch_object($result3), then set $user_id = $fwd_users->id.
Anyway, you need to clean up your code a little, and also, I prefer mysql_fetch_array (simply because you can do more with it), but to each his own, I guess.