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