Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
I have the following code
$result = mysql_query("SELECT * FROM members WHERE group = '$groupid'");
while($row = mysql_fetch_array($result))
{
echo $row['name'];
}
which I want to echo all users who are in a certain group, but I get the error "Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\Program Files\wamp\www\state_ecotracker\group.php on line 11"
I do not know what to do.