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