Added operation type (AND, OR) and offset when applying LIMIT