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