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