I'm getting a notice for a query:

adding missing FROM-clause entry for table "promomodel"

The query is:

SELECT PromoModelID
FROM PromoModel, Model
LEFT JOIN Supplier ON Supplier.SupplierID = PromoModel.SupplierID

The notice doesn't appear if I switch the two tables names in the FROM clause:

SELECT PromoModelID
FROM Model, PromoModel
LEFT JOIN Supplier ON Supplier.SupplierID = PromoModel.SupplierID

As I understand it, the order of tables shouldn't matter, so I must be missing something. Could someone fill me in please? (Redhat 7.1, Postgres 7.4beta)


CREATE TABLE Model (
ModelID INT NOT NULL PRIMARY KEY DEFAULT NEXTVAL('model_modelid_seq'),
Code VARCHAR(30) NOT NULL UNIQUE,
Name VARCHAR(25) NOT NULL,
ProductCatID INT REFERENCES ProductCat (ProductCatID),
BusinessCatID INT REFERENCES BusinessCat (BusinessCatID),
IsActive BOOLEAN NOT NULL
);



CREATE TABLE Supplier (
SupplierID INT NOT NULL PRIMARY KEY DEFAULT NEXTVAL('supplier_supplierid_seq'),
Code CHAR(4) NOT NULL UNIQUE,
Name VARCHAR(30) NOT NULL,

CurrencyID INT REFERENCES Currency (CurrencyID),

FrameRatioCatID INT REFERENCES FrameRatioCat (FrameRatioCatID),
GradeRatioCatID INT REFERENCES GradeRatioCat (GradeRatioCatID),

SupplierGradeCatID INT REFERENCES SupplierGrades (SupplierGradesID),

PriceListCode VARCHAR(8),

IsActive BOOLEAN
);


CREATE TABLE PromoModel (
PromotionID INT NOT NULL REFERENCES Promotion (PromotionID) ON DELETE CASCADE,
ModelID INT NOT NULL REFERENCES Model (ModelID) ON DELETE CASCADE,

SupplierID INT REFERENCES Supplier (SupplierID),
DisplayFabricID INT REFERENCES MFabric (MFabricID),

PromoModelID INT NOT NULL UNIQUE DEFAULT NEXTVAL('promomodel_promomodelid_seq'),

PRIMARY KEY (PromotionID, ModelID)
);