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