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