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