SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}Venda{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCity = 'Venda' OR prZip = 'Venda' OR prStreet LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}Venda{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCountry = 'Venda') AND (prLocation LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}do{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCity = 'do' OR prZip = 'do' OR prStreet LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}do{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCountry = 'do') AND (prLocation LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}Pinheiro{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCity = 'Pinheiro' OR prZip = 'Pinheiro' OR prStreet LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}Pinheiro{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCountry = 'Pinheiro') AND (prLocation LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}Portugal{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCity = 'Portugal' OR prZip = 'Portugal' OR prStreet LIKE '{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}Portugal{0ea455fafd9002a82b0cc653f88f5c868c51a0c74540f8973cdc131c783285f4}' OR prCountry = 'Portugal')