Remove unnecessary 'OUTER' from query