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