You can simplify the query
$requete = "select * from $table1 where color='$color' AND
word in ('$word1','$word2','$word3','$word4',
'$word5','$word6','$word7','$word8')";
To see what the problem with the query is, add some error handling
$result = mysql_query($requete) or die(mysql_error());