Ma così?

Codice PHP:
function __commentnew()
{
$myid $_SESSION['id'];
$query_all mysql_query ("SELECT * FROM post 
                              WHERE post.iduser IN (SELECT myfriends.idfriend FROM myfriends WHERE myfrineds.idmy = '
$myid') 
                              ORDER BY post.data DESC"
);
while (
$posts mysql_fetch_array ($query_all)){
    

        echo 
$readcomment['nome'];
        echo 
$readcomment['commento'].'
'
;
        
        
/*ETC   ETC:: ETC:::*/
        
        
        
}
    
    } 
In alternativa, se non hai i dati dell'utente del post (nome, etc) nella tabella post, puoi fare prima il join con la tabella che contiene i dati (es user)
Codice PHP:
SELECT FROM post
JOIN user ON 
(post.iduser user.id )
WHERE user.id IN (SELECT myfriends.idfriend FROM myfriends WHERE myfrineds.idmy '$myid'
ORDER BY post.data DESC