select `a`.`id`, `a`.`facebook_link`, `a`.`twitter_link`, `a`.`linkedin_link`, `a`.`name`, `a`.`slug`, `a`.`english_name`, `a`.`image`, `a`.`description` from `posts` as `p` innerjoin `post_authors` as `pa` on `pa`.`post_id` = `p`.`id` innerjoin `authors` as `a` on `a`.`id` = `pa`.`author_id` where `p`.`id` =347514
select `c`.`id`, `c`.`name` from `categories` as `c` innerjoin `post_categories` as `ps` on `c`.`id` = `ps`.`category_id` innerjoin `posts` as `p` on `p`.`id` = `ps`.`post_id` where `ps`.`post_id` =347514orderby `c`.`id` desc
select `authors`.*, `post_authors`.`post_id` as `pivot_post_id`, `post_authors`.`author_id` as `pivot_author_id` from `authors` innerjoin `post_authors` on `authors`.`id` = `post_authors`.`author_id` where `post_authors`.`post_id` =347514
select `tags`.`id`, `name`, `post_tags`.`post_id` as `pivot_post_id`, `post_tags`.`tag_id` as `pivot_tag_id` from `tags` innerjoin `post_tags` on `tags`.`id` = `post_tags`.`tag_id` where `post_tags`.`post_id` =347514
select `c`.`id`, `c`.`name`, `c`.`slug`, `c`.`published`, `c`.`parent`, `c`.`list_template`, `c`.`detail_template` from `categories` as `c` innerjoin `post_categories` as `ps` on `c`.`id` = `ps`.`category_id` innerjoin `posts` as `p` on `p`.`id` = `ps`.`post_id` where `ps`.`post_id` =347514
select `categories`.*, `post_categories`.`post_id` as `pivot_post_id`, `post_categories`.`category_id` as `pivot_category_id` from `categories` innerjoin `post_categories` on `categories`.`id` = `post_categories`.`category_id` where `post_categories`.`post_id` =347514orderby `id` desc
select `tags`.*, `post_tags`.`post_id` as `pivot_post_id`, `post_tags`.`tag_id` as `pivot_tag_id` from `tags` innerjoin `post_tags` on `tags`.`id` = `post_tags`.`tag_id` where `post_tags`.`post_id` =347514