Beware of where clauses on outer-joined tables

Fixes assembla-135