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