select `categories`.*, `category_post`.`post_id` as `pivot_post_id`, `category_post`.`category_id` as `pivot_category_id` from `categories` innerjoin `category_post` on `categories`.`id` = `category_post`.`category_id` where `category_post`.`post_id` in (17464) and `categories`.`deleted_at` isnull
select `posts`.*, `post_also`.`post_id` as `pivot_post_id`, `post_also`.`rec_id` as `pivot_rec_id` from `posts` innerjoin `post_also` on `posts`.`id` = `post_also`.`rec_id` where `post_also`.`post_id` =17464and `posts`.`deleted_at` isnull