zendframework/zf2 — pull request #3344 by Richard-Rumpel (2013-01-04 13:55:07+00:00)
Title: Update library/Zend/Paginator/Adapter/DbSelect.php

DbSelect adatper don't reset ORDER BY on count query, this leads to an exception if your DbSelect object uses order function.

This patch should resolve this problem.