Не могу понять в чем ошибка запроса: mysql_num_rows
выдает ошибку:
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in ../test/af_add.php on line
if($_GET['byin']){
$af_text=$_GET['byin'];
echo $af_text;
$query = ("SELECT * WHERE MATCH (af_name) AGAINST ('$af_text') FROM af_page ");
$result = mysql_query($query);
$row = mysql_num_rows($result);
echo '<ul class="hr">';
if($row>0){
while ($row = mysql_fetch_array($result)){
echo '
<li style="padding-top:10px; margin:10px;"> <a href="#" class="tooltip" style="float: left;"><img src="../test/'.$af_img.'" style=" width:220px; height:220px; " ><span>
<img class="callout" src="../test/img/callout_black.gif" />
<img src="../test/'.$af_img.'" width="80px" style="float:right;" />
<strong>'.$af_name.'</strong><br />
'.$af_text.'<br> <b>Место проведения: '.$af_place.'</b>
</span> <div style="top: 200px; padding-top:10px; padding-bottom:30px; background: #FEDB61; color: #2B2100; font-size: 24px; border-right: 1px solid white; border-left: 1px solid white; text-decoration: none;"><center>
'.$af_date_look.'</center></div></a>';
echo ' </li> ';
}}else{ echo '<div style="position: absolute; top: 100px; left: 200px;"><center><img src="../test/img/noaf.png"></center></div>';}
}