cakephp/cakephp — pull request #4473 by markstory (2014-09-03 02:57:45+00:00)
Title: Remove offset from cloned queries used in subquery loads.

Having an offset in a subquery causes SQL errors in MySQL. Also include a test to ensure HAVING is not an issue.

Fixes #4465