SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}Lissabon{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}' OR prCity = 'Lissabon' OR prZip = 'Lissabon' OR prStreet LIKE '{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}Lissabon{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}' OR prCountry = 'Lissabon') AND (prLocation LIKE '{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}Portugal{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}' OR prCity = 'Portugal' OR prZip = 'Portugal' OR prStreet LIKE '{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}Portugal{0c6a96fdd38bde36c3577ffa168983b322a942f6de9f5266b7b3624a6797a75d}' OR prCountry = 'Portugal')