$mapRaw='(f.auto_person != 5 and FIND_IN_SET('.unit::getuserinfo('uid').",f.sponsor_ids)) or (f.auto_person=5 and ($tmpRaw))or (f.auto_person=6 and ($tmpRaw))";
$mapRaw='(f.auto_person != 6 and f.auto_person != 5 and FIND_IN_SET('.unit::getuserinfo('uid').',f.sponsor_ids)) or (f.auto_person=5 and ('.$tmpRaw.'))or (f.auto_person=6 and f.word_type=1 and FIND_IN_SET('.unit::getuserinfo('uid').',f.sponsor_ids)) or (f.auto_person=6 and f.word_type=2 and ('.$tmpRaw.'))';