title: Trying to get property of non-object
body: <p>I want to if there are no authors/users found exit given the message below. But keep striking   Trying to get property of non-object on the $author_found_count. Why is this? Thanks</p>
  
  <pre><code>$find_author = "SELECT user FROM reviews WHERE review_id=$review_id;";
  
  $search_author = mysqli_query($con,$find_author);
  
  $found_author = mysqli_fetch_array($search_author);
  
  $author_found_count = $found_author-&gt;num_rows;
  
  //Check to see if any reviews have been found.
  if($author_found_count == 0) {
  
  //No reviews found.
  exit ("You are not the author of the review. You are not authorised to delete it.");
  }
  </code></pre>