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