Duplicated error from pb
Fix LeftJoin postgres bug (and cry over poor query-compiling code)