I have a model like this
function show_city_n_area_from_id($data){ // $data is an array of ids
$this->db->select('column1');
$this->db->from('table');
$this->db->where('id', $data);
$query = $this->db->get();
$query_result = $query_array();
return $query_result;
}
I am trying to extract all the values from 'column1' in the form of an array from '$data' which is an array of several ids.
Thanks in advance.
I get error:
Unknown column 'Array' in 'where clause' SELECT
column1
FROMtable
WHEREid
=Array