why dont you sure a set type. so define the set as
('single','married','male','female','irish')
Then you could take the input array and write your sql on the fly
sql = "select * from tab1 where ";
foreach($var as $input_var) {
$sql .= "find_in_set('$input_var', tbl1.set_field and ";
}
dont forget the delete the trailing "and "
Cheers
John