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