WITH clause where it shouldn't be