         firstFlg = false
         for place in places {
             if !firstFlg {
-                selectGenre += "AND (address CONTAINS[c] '\(place)' OR  place CONTAINS[c] '\(place)'"
+                selectGenre += "AND (address CONTAINS[c] '\(place.realmEscaped)' OR  place CONTAINS[c] '\(place.realmEscaped)'"
                 firstFlg = true
             }
-            selectGenre += "OR address CONTAINS[c] '\(place)' OR place CONTAINS[c] '\(place)' "
+            selectGenre += "OR address CONTAINS[c] '\(place.realmEscaped)' OR place CONTAINS[c] '\(place.realmEscaped)' "
         }
         // 0は許容していないがバグ回避のためチェック
         if places.count != 0 {
             selectGenre += ")"
         }
         
-        let events: Results<Event> = self.realm.objects(Event).filter("checkStatus == \(CheckStatus.NoCheck.rawValue) \(selectGenre)").sorted("stratAt")
+        let events: Results<Event> = self.realm.objects(Event).filter("checkStatus == \(CheckStatus.NoCheck.rawValue) \(selectGenre.realmEscaped)").sorted("stratAt")
         return setEventInfo(events)
     }
     

            }
        }
        
        let events: Results<Event> = self.realm.objects(Event).filter("checkStatus == \(CheckStatus.NoCheck.rawValue) \(selectGenre)").sorted("stratAt")
        return setEventInfo(events)
    }
    

        var firstFlg: Bool = false
        for genre in genres {
            if !firstFlg {
                selectGenre += "AND (title CONTAINS[c] '\(genre.realmEscaped)' "
                firstFlg = true
            }
            selectGenre += "OR title CONTAINS[c] '\(genre.realmEscaped)' "
        }
        // 0は許容していないがバグ回避のためチェック
        if genres.count != 0 {
