/** * Builds the WHERE part * * @return string */ protected function _buildWherePart() { $sql = ''; $where = $this->_query->getConditionString(); if (!empty($where)) { $sql = ' WHERE ' . $where; } return $sql; }