direi intanto che non puoi utilizzare lo stesso nome ci campo TESTO perche' l'ultimo sovrascrive il primo nell'elenco dei campi.

Quindi bisogna usare l'alias per almeno un campo TESTO. Poi la variabile $nrw contiene il numero delle righe trovate. Non devi usarla per scaricare il result set. Il result set richiamato da mysql_fetch_assoc() rende un array con tutti i campi delle due tabelle. Quindi array e non variabile che verra' sovrascritta.

Codice PHP:
$sql "SELECT IDS, stato.TESTO as testo1, commento.TESTO as testo2  
          FROM stato 
          INNER JOIN commento ON stato.IDS = commento.IDS"
;
 
            
$query mysql_query($sql);
            
$nrw mysql_num_rows($query);                    
                                                        
            while (
$row mysql_fetch_assoc($query)) {                
                                    
                
$text $row['testo1'];
                
$quote =  $row['testo2'];

                                
$var $text $quote";
                                echo 
$var;
                        } 
occhio che i nomi dei campi nel result set sono case sensitive e se sei in linux lo sono ovunque. Quindi STATO != stato != Stato