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.