Niente... non riesco...

Nel mio esempio pratico, quello che mi hai scritto è diventato così, ma non funge:

<?php
$news = $_GET['news'];
$yyyy = $_POST['yyyy'];
$squadra = $_POST['squadra'];
include("inc.php");?>
<?php
if($squadra=="" OR $anno=="")
{
$opzione = 'and';
}
else
{
$opzione = 'or';
}
?>

<?
$sql = "select * from news WHERE yyyy = '$yyyy' $opzione squadra = '$squadra' order by id desc LIMIT 0,10";
if ($result = mysql_query ("$sql")){
while ($row=mysql_fetch_array ($result)) {
?>


dove sbaglio?