SELECT * FROM ip_properties WHERE prActive = 1 AND (prLocation LIKE '{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}Cascais{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}' OR prCity = 'Cascais' OR prZip = 'Cascais' OR prStreet LIKE '{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}Cascais{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}' OR prCountry = 'Cascais') AND (prLocation LIKE '{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}Portugal{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}' OR prCity = 'Portugal' OR prZip = 'Portugal' OR prStreet LIKE '{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}Portugal{66f00da6bdd526d9815890b707dbd948f3ab242d640e50400c267c4e5f6b4570}' OR prCountry = 'Portugal')