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