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