SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Bad{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Bad{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCountry = 'Bad') AND (prLocation LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Griesbach{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCity = 'Griesbach' OR prZip = 'Griesbach' OR prStreet LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Griesbach{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCountry = 'Griesbach') AND (prLocation LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}im{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCity = 'im' OR prZip = 'im' OR prStreet LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}im{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCountry = 'im') AND (prLocation LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Rottal{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCity = 'Rottal' OR prZip = 'Rottal' OR prStreet LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Rottal{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCountry = 'Rottal') AND (prLocation LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Germany{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}Germany{6cd8b9ed981a52ed9eee8768ac3b5d03b8f400222740b3483df59d2ca89bbdeb}' OR prCountry = 'Germany')