how could I select the values from the table where my passed ID value is inside a string? Values of columns can be 3326,9023,3725,552,1559 or 3326, it's a string of n values. I need to get the row if my passed ID is inside this string.
Query:
$result = $this->db->query("
SELECT b.*
FROM `values` AS `b`
WHERE b.ids = ?
", array($id))->row_array();