more tmysql problems >.>

okay, so hopefully this is the final problem with my entire thing and it will be completely finished…

function Test.Preload(ply)
	tmysql.query("SELECT rank FROM test_accounts WHERE steamid='"..ply:SteamID().."'", function(res, status, error)
		if(status== 1) then
			 --Sit Tight
			 Msg("Congrats your account exists?")
			 Msg("Account doesn't exist
                end, 1);

Now obviously this doesn’t work… I can’t say anything like if res == this or that because its nil… so how do I determine if its even in the table. >.> status always returns 1 for some reason. (obviously meant for things like, did it connect to the database ETC).

any ideas?