$condition .= " AND FIND_IN_SET('" . intval($id) . "', {$prefix}membergroupids)";
$condition .= " AND FIND_IN_SET(" . intval($id) . ", {$prefix}membergroupids)";