Hmm.. it might be that the snippet parameter values cannot contain equal sings.. not sure though.
Anyways, try going around it by doing something like this:
<?php
$mgconfig['custom_where_fields'] = (isset($custom_where_fields)) ? explode(',',$custom_where_fields) : array();
$mgconfig['custom_where_values'] = (isset($custom_where_values)) ? explode(',',$custom_where_values) : array();
?>
Then try the query like this:
<?php
$conditions = "";
$fieldcount = count($mg->mgconfig['custom_where_fields']);
for ($i=0; $i < $fieldcount; $i++) {
$conditions .= " AND ".$mg->mgconfig['custom_where_fields'][$i]."='".$mg->mgconfig['custom_where_values'][$i]."'";
if ($i < $fieldcount-1) {
$conditions .= ",";
}
}
$rs=$modx->db->select(
"*",
$modx->db->config['table_prefix'].$mg->mgconfig['gtable'],
"(gal_id='" . $mg->pageinfo['id'] . "' AND NOT hide='1') ".$conditions.",
$orderby.' '.$mg->mgconfig['order_direction'],
$mg->mgconfig['offset'].','.$mg->mgconfig['limit']);
?>
And then do something like this in your snippet call
[!MaxiGallery? &custom_where_fields=`winner` &custom_where_values=`yes`!]
If that works, you should be able to do multiple columns like this:
[!MaxiGallery? &custom_where_fields=`winner,someothercolumn` &custom_where_values=`yes,some other value`!]
Didn’t test the code though, so there can be typos and bugs.