Handles LIMIT clauses.