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