<?
$ikieksik=28;
$tamsoru=30;

$say = "-1";  
while ($say <=$ikieksik)
{  
$say++;  
?>
        </tr>
        <tr>
          <th width="<? echo $tamsoru; ?>" scope="row" bgcolor="#DEEBF7"><? echo $say+1; ?></th>
          <th width="31" scope="row" bgcolor="#f7f7f7"><?  
$result=mysql_query("SELECT uyecevap from karne where username='$username' and sinif='$sinif' and denemeno='$denemeno' and ders='1' order by soruno asc limit $say,1 ;");  
$satir=mysql_fetch_array($result);  
?>
<a href="deneme.php?denemeno=<? echo $denemeno; ?>&soruno=<? echo $say; ?>" class="highlightit" ><img src="/gununsorusu/upload/<? echo $satir['uyecevap']; ?>" border="0" /></a>		</th>
	    </tr>
		
		
 <? 
 }  
?>

Yukarıdaki kod site içinde çalışyor ve çalışrken hata vermiyor ama sonra bulunduğu diznde error.log dosyası oluşturuyor ve dosyanın içinde yazana göre 310. satır yani yukarıdaki "$satir=mysql_fetch_array($result); " satırında mysql_fetch_array hatası veriyor.Burdaki hata ne olabilir ki?