Fix: don't apply limit and offset for joined queries.