SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}Bad{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}' OR prCity = 'Bad' OR prZip = 'Bad' OR prStreet LIKE '{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}Bad{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}' OR prCountry = 'Bad') AND (prLocation LIKE '{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}Gastein{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}' OR prCity = 'Gastein' OR prZip = 'Gastein' OR prStreet LIKE '{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}Gastein{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}' OR prCountry = 'Gastein') AND (prLocation LIKE '{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}Austria{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}' OR prCity = 'Austria' OR prZip = 'Austria' OR prStreet LIKE '{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}Austria{1e0480ea85cc34026d5d36a6d333fd11bbbe92337b2000d511a81ad5082af662}' OR prCountry = 'Austria')