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