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