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