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