SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}Bellapais{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}' OR prCity = 'Bellapais' OR prZip = 'Bellapais' OR prStreet LIKE '{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}Bellapais{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}' OR prCountry = 'Bellapais') AND (prLocation LIKE '{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}Cyprus{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}' OR prCity = 'Cyprus' OR prZip = 'Cyprus' OR prStreet LIKE '{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}Cyprus{a291a111619e7c8886093c048420aae868daf64c8b6b5aa70a2b9f2e3da2a874}' OR prCountry = 'Cyprus')