SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}Leipheim{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}' OR prCity = 'Leipheim' OR prZip = 'Leipheim' OR prStreet LIKE '{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}Leipheim{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}' OR prCountry = 'Leipheim') AND (prLocation LIKE '{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}Germany{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}Germany{39b0ae5242afae9c567231cf145a6ce5eb4ce95a71dadcb63372e72f7fb310a2}' OR prCountry = 'Germany')