Codeigniter Where_In Operator Does Return Any Result : <p>I'm using Codeigniter to query a list of result by passing Array into the modal. But the return result alway empty. I had checked and try to a few method that i found on stackoverflow but none of it work.</p>

<p>Eg. 
Array
(
 [0] => 12
 [1] => 13
)</p>

<p>My code :</p>

<pre><code>&lt;?php
ini_set('max_execution_time', 0);
ini_set('memory_limit','2048M');
defined('BASEPATH') OR exit('No direct script access allowed');

class Sms_model extends CI_Model
{
    //Return Selected Customer ID
    public function getCustomerInfo($data){

        $ids = array();
        foreach ($data['customerID'] as $id)
            {
                $ids[] = $id;
            }
        print_r($ids);
        $this-&gt;db-&gt;select('Handphone');
        $this-&gt;db-&gt;from('tblcustomer');
        $this-&gt;db-&gt;where_in('CustomerID', $ids);
        $query = $this-&gt;db-&gt;get();

        if ($query-&gt;num_rows() == 1) {
            return $query-&gt;result();
        } 
        else {
            return false;
        }
    }

}
</code></pre>

<p>What did i do wrong on the query?
Please guide me, thanks</p>
