Your SQL statement includes an OUTER JOIN clause but isn't preceded by the keywords LEFT or RIGHT. An outer join clause in an SQL statement must be either a LEFT OUTER JOIN or a RIGHT OUTER JOIN clause.