if (!is_null($country)) {
            $params[] = strtoupper($country);
            $country = " AND country_code = ?";
        }