I have a little strange question on MySql. I have table named adds and that table has places field where are stored places id. Places field value equals serialized array (e.t.c array('1', '3', '4')) of places ids'. Also i have search form and I would like to search more fields than one at once. For ex: I would like find places with ID('3', '6', '8' and so on). When i query using mysql like this it throws an error.
$val=array('3', '6', '8');
mysql_query("Select * from add where active='active' && array_intersect(unserialize(places))");
How can i do query? May it possible using stored procedures or functions in MySql?