I have sth like that:
public function MyFunc(array $conditions, array $fetchOptions = array())
{
$whereClause = $this->prepareUserConditions($conditions, $fetchOptions);
$this->addFetchOptionJoin($fetchOptions, self::FETCH_LAST_ACTIVITY);
$orderClause =...