My results seem to come back but why is my array blank?
0
I have a table that is supposed to pull in users that match by field. Fundraisers has a field called 'phone_referral'... the results seem to come back but the array is blank $fundraisersIds = $this->Fundraisers->find('list', ['conditions' => ['Fundraisers.user_id' => $this->Auth->user('id')], 'fields' => ['phone_referral', 'phone_referral']])->toArray(); Array ( [0] => [1] => ) If this array came back right I am trying to pass it into this to get the users: $referredUsers = $this->Users->find('all')->where(['Users.referredBy IN '=>$fundraisersIds])->group('Users.referredBy')->count(); This is my setup: public function initialize(array $config) { parent::...