SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}Puigpunyent{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}' OR prCity = 'Puigpunyent' OR prZip = 'Puigpunyent' OR prStreet LIKE '{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}Puigpunyent{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}' OR prCountry = 'Puigpunyent') AND (prLocation LIKE '{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}Spain{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}Spain{8454fd5ee51a790fd64badb4c74bdb002230384ac90deb33d5dd0baa9bc0efdb}' OR prCountry = 'Spain')