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