SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}Berlin{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCity = 'Berlin' OR prZip = 'Berlin' OR prStreet LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}Berlin{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCountry = 'Berlin') AND (prLocation LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}/{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCity = '/' OR prZip = '/' OR prStreet LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}/{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCountry = '/') AND (prLocation LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}Mahlsdorf{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCity = 'Mahlsdorf' OR prZip = 'Mahlsdorf' OR prStreet LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}Mahlsdorf{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCountry = 'Mahlsdorf') AND (prLocation LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}Germany{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCity = 'Germany' OR prZip = 'Germany' OR prStreet LIKE '{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}Germany{5df07de8fa89201eead227c759e6a4da77401d8401291c64f99d5f1e62273e28}' OR prCountry = 'Germany')