Cây Di Sản

SELECT `object`.`id`, `object`.`title`,`object`.`canonical`, `object`.`image`, `object`.`created`, `object`.`viewed`, `object`.`description`, `object`.`short_description`, (SELECT fullname FROM user WHERE user.id = object.userid_created) as user_created, (SELECT title FROM article_catalogue WHERE article_catalogue.id = object.catalogueid) as catalogue_title, (SELECT count(id) FROM comment WHERE comment.detailid = object.id AND comment.module = 'article') as comment FROM `catalogue_relationship` as `att` INNER JOIN `article` as `object` WHERE `att`.`module` = 'article' AND `att`.`moduleid` = `object`.`id` AND (`att`.`catalogueid` = 113) AND `object`.`publish_time`

Từ khóa » Cây Di Sản