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