致命错误:调用未定义的方法mysqli_result :: fetch()

When i try to login on my website i got this error:

( ! ) Fatal error: Call to undefined method mysqli_result::fetch() in C:\wamp\www\Website\index2.php on line 10

And there is the code

<?php require 'Connections/Connections.php'; ?>
<?php

if(isset($_POST['Entrar'])){


        $Email = $_POST['Email'];
        $Password = $_POST['Password'];

        $result = $con->query("SELECT * from user where Email='$Email' AND Password='$Password'");

        $row = $result->fetch(MYSQLI_BOTH);

        session_start();

        $_SESSION["User ID"] = $row['UserID'];

        hearder('Location: index.php');
    }
?>