Updated SQL(Cakephp PostgresSQL error with join and fields - Fatal error: Call to a member function schema() on a non-object in .../lib/Cake/Model/Datasource/Database/Postgres.php on line 405)