$conditionsSubQuery['`followers`.`follower_id `'] = 1;$dbo = $this->Follower->getDataSource();$subQuery = $dbo->buildStatement( array( 'fields' => array('`followers`.`following_id`'), 'table' => $dbo->fullTableName($this->Follower), 'alias' => 'followers', 'limit' => null, 'offset' => null, 'joins' => array(), 'conditions' => $conditionsSubQuery, 'order' => null, 'group' => null ), $this->Follower); $subQuery = ' `tweets`.`user_id` IN (' . $subQuery . ') '; $subQueryexpression = $dbo->expression($subQuery); $conditions[] = $subQueryexpression; $this->Tweet->find('all', compact('conditions'));