Okappa, grazie!
E con due LEFT JOIN in fila come sarebbe? Del tipo:
codice:SELECT * FROM (tabella_documenti, tabella_tipi_documento) LEFT JOIN tabella_allegati ON tabella_documenti.id_documento = tabella_allegati.docs_id LEFT JOIN tabella_allegati_prova ON tabella_documenti.id_documento = tabella_allegati_prova.docs_id ...