Another SQL whereclause refinement method