cakephp/cakephp — pull request #4391 by Laykou (2014-08-25 19:58:01+00:00)
Title: Remove autoFields from count method

When autoFields was set to true and count method was triggered, autofields were added to the query and SQL failed due to wrong format.

This solves `count()` problem in https://github.com/cakephp/cakephp/pull/4381