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