Thanks Kows,

Doing an echo I have seen that the first time I login, the count returns null, nothing at all. Not even zero. However when I login again It works. NO SQL errors, or php errors display at all.

Only this appears the first time I try and login

PHP Code:
$_SESSION['userrecid']="An Error Has Occured!"