I am having a problem with my MYSQL statement
Warning : mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in C:\Users\R.B.Lara\Documents\My Projects\focalnews\index.php on line 188
$sqltype = "SELECT * FROM focalnews_items ORDER BY datime ASC limit $last,20 WHERE (likes >= 5 OR love >= 5 OR informative >= 5)";
$resulttype = mysqli_query($conn, $sqltype);
if (mysqli_num_rows($resulttype) > 0) {
while($row = mysqli_fetch_assoc($resulttype))
{
$profile_pic = $row["profile_pic"];
$author = $row["author"];
$message = $row["message"];
$likes = $row["likes"];
$love = $row["love"];
$informative = $row["informative"];
$datime = $row["datime"];
$joined_date = $row["joined_date"];
}
}
?>
Any Idea please?