SELECT user_ID, login, user_role FROM $access
WHERE login = '$login'
AND password = '$password'
LIMIT 1;