SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}Tibi{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}' OR prCity = 'Tibi' OR prZip = 'Tibi' OR prStreet LIKE '{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}Tibi{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}' OR prCountry = 'Tibi') AND (prLocation LIKE '{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}Spain{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}Spain{94216c5be5aa73111747c09c5f75d0507107ba8ee99463ef2727060127e7c8ed}' OR prCountry = 'Spain')