SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}Paderborn{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCity = 'Paderborn' OR prZip = 'Paderborn' OR prStreet LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}Paderborn{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCountry = 'Paderborn') AND (prLocation LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}/{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}/{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCountry = '/') AND (prLocation LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}Sande{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCity = 'Sande' OR prZip = 'Sande' OR prStreet LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}Sande{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCountry = 'Sande') AND (prLocation LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}Germany{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}Germany{10ca4a937df19b639fc17c4d83ae9a3d7dbfee34dc8e8c04b7e29426aef42343}' OR prCountry = 'Germany')