SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}Bad{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}Bad{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}' OR prCountry = 'Bad') AND (prLocation LIKE '{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}Fallingbostel{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}' OR prCity = 'Fallingbostel' OR prZip = 'Fallingbostel' OR prStreet LIKE '{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}Fallingbostel{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}' OR prCountry = 'Fallingbostel') AND (prLocation LIKE '{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}Germany{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}Germany{b69b46cd8273ac3245a475cea566b17e2ab9d4b115fa989201ad6429cce5aeb6}' OR prCountry = 'Germany')