CREATE OR REPLACE PROCEDURE 
    Online( IN Token VARCHAR(64) )
BEGIN
    SELECT
        user_id
    FROM
        online
    WHERE
        session_token = Token
    AND
        activity > DATE_SUB( NOW(), INTERVAL 1 MONTH )
    LIMIT 
        1
    ;
END