Resource id #2

$asdf = “select cash from usergame where user_name = ‘$HTTP_SESSION_VARS[user_name]’” or die(mysql_error());
$asdf_res = mysql_query($asdf) or die(mysql_error());
srand ((float) microtime() * 10000000);
while ($cats = mysql_fetch_array($asdf_res)) {
$cash = $cats[‘cash’];

When i try and select cash … cash =0 when it should = something else
I know it finds the row because i put print $cash in that while statement and it prints as 0
Resource id #2
i get that stupid error and i donno why i think thats whats causing cash to not = what it should… help me out eh?