SELECT `a`.*, `b`.`title` as `document_title`, `b`.`description` as `document_description`
FROM `kbs__attachment` `a`
JOIN `kbs__document` `b` ON `b`.`id` = `a`.`document_id`
WHERE `a`.`is_delete` =0
AND `a`.`document_id` = '4'