if(isset($_POST['l_login']))
{
$query = $con->prepare("SELECT id FROM librarian WHERE username = ? AND password = ?;");
$query->bind_param("ss", $_POST['l_user'], sha1($_POST['l_pass'])); //line44
$query->execute();
if(mysqli_num_rows($query->get_result()) != 1)
echo error_without_field("Invalid username/password combination");
else
{
the code is not working Only variables should be passed by reference on line 44