
    SELECT 
        `desk_details`.`desk_id` AS `desk_id`,
        IFNULL(`desks_cards`.`countCards`, 0) AS `cards`,
        IFNULL(`desks_desks`.`countDesks`, 0) AS `desks`
    FROM
        (select '16617681110005' as desk_id) desk_details
        , (SELECT 
				
                COUNT(`cards_data_base`.`card_id`) AS `countCards`
        FROM
        `cards_data_base` 
        WHERE
            (`cards_data_base`.`tree` LIKE CONCAT('%{desk_id}%')))
       `desks_cards` ,
        (SELECT 
                COUNT(`desks`.`desk_id`) AS `countDesks`
        FROM
            `desks`
       where parent_desk = '{desk_id}') `desks_desks` 