user db- prepare SELECT FROM users WHERE login AND pass LIMIT user- ex

1
2
$user = $db->prepare("SELECT * FROM `users` WHERE `login`= ? AND `pass`= ? LIMIT 1");
$user->execute(array($login, $pass));