Error 500

mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given