grazie per la risposta, ma purtroppo non funziona, almeno per me....
ho sostituito gli as Q_B,Q_C con Q_A cosi:

codice:
$qTot = ("		SELECT 
	SUM(Quantita_A) as Q_A
	from TB_A
	where Prefisso_A IN ('1','2','3','4','5') and
	Q_A = '204' and F_A = '1' and S_ = 'a'
			
UNION
			
SELECT 
	SUM(Quantita_B) as Q_A,
             from TB_A
	where 	Q_A = '204' and F_A = '1' and S_ = 'a'
				
UNION
				
SELECT 
	SUM(Quantita_D) as Q_A
             from TB_A
	where Prefisso_D IN ('6','7') and
	Q_A = '204' and F_A = '1' and S_ = 'a');


$row = mysql_query($qTot);
while ($Riga = mysql_fetch_array ($row)){
             $nQ_A= $Riga['Q_A'];
}
echo $nQ_A;
Anche cosi non funziona....dove sbaglio?
Grazie ancora