updated to work with limit/offsets in newer versions of CakePHP
updated to work with limit/offsets in newer versions of CakePHP