SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}Rosenheim{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}' OR prCity = 'Rosenheim' OR prZip = 'Rosenheim' OR prStreet LIKE '{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}Rosenheim{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}' OR prCountry = 'Rosenheim') AND (prLocation LIKE '{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}Germany{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}Germany{61a8ad78f6ee52cb60449956b1f902798a7716cf2ada77f27a5ae9b7eecb85e2}' OR prCountry = 'Germany')