SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}Aachen{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCity = 'Aachen' OR prZip = 'Aachen' OR prStreet LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}Aachen{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCountry = 'Aachen') AND (prLocation LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}/{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}/{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCountry = '/') AND (prLocation LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}Mitte{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCity = 'Mitte' OR prZip = 'Mitte' OR prStreet LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}Mitte{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCountry = 'Mitte') AND (prLocation LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}Germany{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}Germany{6a965fbb17eb8fb5dcf3b183475156f937308c0ae304e1dc65a910886fb12d7c}' OR prCountry = 'Germany')