protected function getSelect($table = null)
    {
        $this->initialize();

        $select = $this->getSlaveSql()->select();

        $select->from($table ?: $this->getTableName());

        return $select;
    }