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