SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}Erlangen{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCity = 'Erlangen' OR prZip = 'Erlangen' OR prStreet LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}Erlangen{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCountry = 'Erlangen') AND (prLocation LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}/{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}/{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCountry = '/') AND (prLocation LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}Büchenbach{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCity = 'Büchenbach' OR prZip = 'Büchenbach' OR prStreet LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}Büchenbach{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCountry = 'Büchenbach') AND (prLocation LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}Germany{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}Germany{bfd369c97488483743da04128c6ea3542b78244be98c87ad78126a60e7faa7ac}' OR prCountry = 'Germany')