SELECT
    '{user_id}' AS `user_id`,
    IFNULL(SUM(`cards_data_base`.`Repetition`),0) AS `Repetition`,
    IFNULL(SUM(`cards_data_base`.`News`),0) AS `News`,
    IFNULL(SUM(`cards_data_base`.`imports`),0) AS `imports`,
    IFNULL(SUM(`cards_data_base`.`Olds`),0) AS `Olds`,
    IFNULL(SUM(`cards_data_base`.`toDay`),0) AS `toDay`
FROM
    cards_data_base
where
    user_id = '{user_id}'