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