Baya bir denedim ama mysql_fetch_array() expects parameter 1 to be resource, boolean given in hatası aldım hep.

Sorgum:
<?php
$query3 = mysql_query("SELECT SUM c FROM tablo WHERE a='$id'");
?>
Döngüm:
<?php
while($sonuc3=mysql_fetch_array($query3))	{
	?>
<?php echo $sonuc3['c']; ?>
	
<?php
}
?>
şeklinde.

Hata bunun neresinde