Your LEFT OUTER JOIN or RIGHT OUTER JOIN clause is missing the = operator between the two table names in the expression. Outer joins must be equi-joins (use the = operator).