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