$sql = "SELECT COUNT(*) AS count
FROM wcf" . WCF_N . "_conversation_to_user conversation_to_user
" . $this->sqlConditionJoins . "
- " . $this->getConditionBuilder()->__toString();
+ " . $this->getConditionBuilder();
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($this->getConditionBuilder()->getParameters());
$row = $statement->fetchArray();
$sql = "SELECT conversation_to_user.participantID AS objectID
FROM wcf" . WCF_N . "_conversation_to_user conversation_to_user
" . $this->sqlConditionJoins . "
- " . $this->getConditionBuilder()->__toString() . "
+ " . $this->getConditionBuilder() . "
" . (!empty($this->sqlOrderBy) ? "ORDER BY " . $this->sqlOrderBy : '');
$statement = WCF::getDB()->prepareStatement($sql, $this->sqlLimit, $this->sqlOffset);
$statement->execute($this->getConditionBuilder()->getParameters());
$sql = "SELECT COUNT(*) AS count
FROM wcf" . WCF_N . "_conversation_to_user conversation_to_user
" . $this->sqlConditionJoins . "
- " . $this->getConditionBuilder()->__toString();
+ " . $this->getConditionBuilder();
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute($this->getConditionBuilder()->getParameters());
$row = $statement->fetchArray();
$sql = "SELECT conversation_to_user.conversationID AS objectID
FROM wcf" . WCF_N . "_conversation_to_user conversation_to_user
" . $this->sqlConditionJoins . "
- " . $this->getConditionBuilder()->__toString() . "
+ " . $this->getConditionBuilder() . "
" . (!empty($this->sqlOrderBy) ? "ORDER BY " . $this->sqlOrderBy : '');
$statement = WCF::getDB()->prepareStatement($sql, $this->sqlLimit, $this->sqlOffset);
$statement->execute($this->getConditionBuilder()->getParameters());
$sql = "SELECT (
SELECT COUNT(*)
FROM wcf" . WCF_N . "_conversation_to_user conversation_to_user
- " . $conditionBuilder1->__toString() . "
+ " . $conditionBuilder1 . "
) + (
SELECT COUNT(*)
FROM wcf" . WCF_N . "_conversation conversation
- " . $conditionBuilder2->__toString() . "
+ " . $conditionBuilder2 . "
) AS count";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(\array_merge(