ciao a tutti non capisco dove sta il problema:

Codice PHP:
switch($action){
    case 
"magazine" :
    
$sql="form magazine Where Categoria='$cat'";
    
$title=menu($cat);
    break;
    case 
"news" :
    
$sql="from news";
    
$title="Archivio news";
    break;
    case 
"search" :
    
$sql="from magazine Where Article Like '%$cerca%' or Description Like '%$cerca%'";
    
$title="Ricerca per $cerca";
    break;
}
mysql_select_db($db1,$dbconn) or die (mysql_error()." errore connessione db1"); 
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'magazine Where Categoria='CAT11'' at line 1 errore conteggio articoli 1