SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}Bad{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}Bad{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}' OR prCountry = 'Bad') AND (prLocation LIKE '{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}Laasphe{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}' OR prCity = 'Laasphe' OR prZip = 'Laasphe' OR prStreet LIKE '{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}Laasphe{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}' OR prCountry = 'Laasphe') AND (prLocation LIKE '{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}Germany{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}Germany{470fef1f0801cc6b340a0da8b9f871ad5be932d78ee1dc9f63ae2672397a8f60}' OR prCountry = 'Germany')