SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}Sa{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}' OR prCity = 'Sa' OR prZip = 'Sa' OR prStreet LIKE '{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}Sa{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}' OR prCountry = 'Sa') AND (prLocation LIKE '{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}Coma{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}' OR prCity = 'Coma' OR prZip = 'Coma' OR prStreet LIKE '{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}Coma{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}' OR prCountry = 'Coma') AND (prLocation LIKE '{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}Spain{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}' OR prCity = 'Spain' OR prZip = 'Spain' OR prStreet LIKE '{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}Spain{9b0dd873217c98765d56025e7cf18c8e5a41f0423610664640dcd1f59ed48a9c}' OR prCountry = 'Spain')