DELPHI/SQL : OUTER JOIN PROBLEM ???

Hi,

        I need to do a query with multiple outer join in a TQUERY and delphi
returns the following message: "Table 'D' Not Found".

        What am I doing wrong ? I can't find any ref. in Delphi {*word*99}py (IMHO)
docs about OUTER JOINs ! Is it syntax, bug,  I can't figure it out. I've done
many OUTER JOINs but they were always only about two tables not as many as
this one...

                                        Any help greatly appreciated. Thanks.

                                                                      Thierry
Code included if you want to try it...

--------------------------------CUT HERE---------------------------

SELECT DISTINCT
D.ProdId, D.ProdName, D4.OinvQty,
SUM(D2.MsaQty01), SUM(D2.MsaQty02),
SUM(D2.MsaQty03), SUM(D2.MsaQty04),
SUM(D2.MsaQty05), SUM(D2.MsaQty06),
SUM(D2.MsaQty07), SUM(D2.MsaQty08),
SUM(D2.MsaQty09), SUM(D2.MsaQty10),
SUM(D2.MsaQty11), SUM(D2.MsaQty12),
SUM(D3.MshQty01), SUM(D3.MshQty02),
SUM(D3.MshQty03), SUM(D3.MshQty04),
SUM(D3.MshQty05), SUM(D3.MshQty06),
SUM(D3.MshQty07), SUM(D3.MshQty08),
SUM(D3.MshQty09), SUM(D3.MshQty10),
SUM(D3.MshQty11), SUM(D3.MshQty12)

FROM
 ":APP_DATA:PRODUCT.DB" D,
 ":APP_DATA:YRCOMMIT.DB" D1

LEFT OUTER JOIN
 ":APP_DATA:MTHLYSAL.DB" D2
ON
 (D2.MsaProdId = D.ProdId)

LEFT OUTER JOIN
 ":APP_DATA:MTHLYSHP.DB" D3
ON
 (D3.MshProdId = D.ProdId)

LEFT OUTER JOIN
 ":APP_DATA:OPNINV.DB" D4
ON
 (D4.OinvProdId = D.ProdId)

WHERE
 (D2.MsaMssplId = 1)
 AND (D3.MshMssplId = 1)
 AND (D4.OinvAppId = 1)
 AND (D3.MshYcmmId = D1.YCmmId)
 AND (D4.OinvYcmmId = D1.YCmmId)
 AND (D2.MsaYcmmId = D1.YCmmId)

GROUP BY D.ProdId, D.ProdName, D4.OinvQty
ORDER BY D.ProdId, D.ProdName, D4.OinvQty

--------------------------------CUT HERE---------------------------