SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}Esporles{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}' OR prCity = 'Esporles' OR prZip = 'Esporles' OR prStreet LIKE '{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}Esporles{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}' OR prCountry = 'Esporles') AND (prLocation LIKE '{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}Spain{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}Spain{078054b9445f86c121d85766aeec6f7fd86ced922cb73e8060f4fa2745abed20}' OR prCountry = 'Spain')