SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}Friedberg{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}' OR prCity = 'Friedberg' OR prZip = 'Friedberg' OR prStreet LIKE '{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}Friedberg{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}' OR prCountry = 'Friedberg') AND (prLocation LIKE '{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}(Hessen){ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}' OR prCity = '(Hessen)' OR prZip = '(Hessen)' OR prStreet LIKE '{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}(Hessen){ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}' OR prCountry = '(Hessen)') AND (prLocation LIKE '{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}Germany{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}Germany{ae09dd6f370600f747e8089123402b2114bc7c83cd00fef09cf00f1267a4135b}' OR prCountry = 'Germany')