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