I'm trying to prepare a statement for login calling the SHA1 function in mysql, but the prepare function keeps returning false
$query = "select user_id, first_name from users where email=? and pass=SHA1(?)";
$stmt = mysqli_prepare($dbc, $query);
Passing mysql functions works, as I can use now() without issue. Does anyone know what is wrong here?