$dati['tabella1.nome'] ???
o usa gli alias nella select , tipo select tb1.id as tb1id, tb2.id as tb2id ....
poi
$dati['tb2id']
$dati['tabella1.nome'] ???
o usa gli alias nella select , tipo select tb1.id as tb1id, tb2.id as tb2id ....
poi
$dati['tb2id']