CakePHP find command warnings when calling find despite return data correctly
===

I'm getting the following errors:

Warning (2): array_keys() expects parameter 1 to be array, null given [CORE\Cake\Model\Datasource\DboSource.php, line 2181]

Warning (2): array_filter() expects parameter 1 to be array, null given [CORE\Cake\Model\Datasource\DboSource.php, line 2185]

Warning (2): array_values() expects parameter 1 to be array, null given [CORE\Cake\Model\Datasource\DboSource.php, line 2185]

Warning (2): array_unique() expects parameter 1 to be array, null given [CORE\Cake\Model\Datasource\DboSource.php, line 2264]

Warning (2): array_merge() [function.array-merge]: Argument #2 is not an array [CORE\Cake\Model\Datasource\DboSource.php, line 1524]

When running this:

    public function pdf($the_id) {
        $searchs = $this->Order->find('all', array('conditions' => array('Order.id' => $the_id, 'Order.user_id' => $this->userDetails['id'])));
        if(empty($searchs)){
            $this->Session->setFlash('The requested order was not found or is not your order', 'error');
            $this->redirect(array('action' => 'yourorders'));
        }
    	
        $this->set('orderpdf', $searchs);
    }

Does anyone know why?