I am getting a array to my model. Say array has an value 1 and 2.

Now I need to update this to a single column 1,2 so that column will look like this

Column

1,2 

```
foreach($x as $y){
 $this->db->where('column',4);
 $this->db->set('id',$data);
 $this->db->update('table');
 }

```

But this is only update 2, it is omitting 1. Where am i going wrong ?