SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}Bad{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}Bad{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}' OR prCountry = 'Bad') AND (prLocation LIKE '{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}Herrenalb{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}' OR prCity = 'Herrenalb' OR prZip = 'Herrenalb' OR prStreet LIKE '{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}Herrenalb{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}' OR prCountry = 'Herrenalb') AND (prLocation LIKE '{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}Germany{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}Germany{9013f519c2b84438c1eb96919ce755b26f43215d542aa6c0d5713a25f094cb04}' OR prCountry = 'Germany')