SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}Berlin{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCity = 'Berlin' OR prZip = 'Berlin' OR prStreet LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}Berlin{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCountry = 'Berlin') AND (prLocation LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}/{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}/{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCountry = '/') AND (prLocation LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}Neukölln{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCity = 'Neukölln' OR prZip = 'Neukölln' OR prStreet LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}Neukölln{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCountry = 'Neukölln') AND (prLocation LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}Germany{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}Germany{87cf596787f69a6695ae2daece6e7c350f8f18300f8402f18c1b04c776a630c2}' OR prCountry = 'Germany')