Структура таблиц:
blogs (`id`, `title`);
posts (`id`, `blog_id`, `title`);
comments (`id`, `post_id`, `text`);
Запрос:
SELECT
`comments`.*,
`blogs`.`id` as blog_id,
`blogs`.`title` as blog_title
FROM `comments`
JOIN `posts` ON `posts`.`id`=`comments`.`post_id`
JOIN `blogs` ON `blogs`.`id`=`posts`.`blog_id`
Результат:
| id | post_id | text | blog_id | blog_title |
|----|---------|-------------|---------|------------|
| 1 | 1 | comment | 1 | Vasya |
| 2 | 2 | comment2 | 1 | Vasya |
| 5 | 2 | lorem ipsum | 1 | Vasya |
| 3 | 6 | comment3 | 2 | Petya |
| 4 | 10 | comment4 | 3 | Masha |
sqlfiddleподробнее