Sorry, like I said, probably too many customizations
Put this in your auth.php:
Code:
$userinfo = func_query_first("SELECT login,firstname,lastname,membership FROM $sql_tbl['customers'] WHERE login='$login'");
$smarty->assign("userinfo", $userinfo);
Then output to your template:
ID: {$userinfo.membership}
Let me know what is output.