Hello im having a bit of a problem, look at this:
SELECT id, activate_key FROM accounts
WHERE id = $accNum
AND password = '$password' AND activate_key = NULL
// Success! the id and password matched and the activate_key field is null
This is my login.
As Soon as I add AND activate_key = NULL
you cant login on any account, even if the activate_key field is NULL.
Sorry for the title, as im not a sql guru i couldnt think of a better title explaining my problem