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