FIX #5767 Zend\Db\Sql\Select: getRawState('order') is inconsistent

Zend\Db\Sql\Select: getRawState('order') is inconsistent after calling reset() #5767