SELECT
							article_main.ID,
							article_main.title,
							article_main.content,
							DATE_FORMAT(article_main.startDT, '%d/%m/%Y') startDT,
							DATE_FORMAT(article_main.endDT, '%d/%m/%Y') endDT,
							article_main.venue,
							article_main.image,
							article_main.feature,
							article_main.status,
							article_main.category,
							article_category.name categoryName,
							article_category.icon categoryIcon,
							article_category.banner categoryBanner,
							DATE_FORMAT(article_main.createdDT, '%Y-%m-%d %H:%i:%s') createdDT,
							DATE_FORMAT(article_main.updatedDT, '%Y-%m-%d %H:%i:%s') updatedDT,
							IFNULL((SELECT penName FROM salihin_cms.people, salihin_cms.user WHERE user.peopleID = people.ID AND user.ID = article_main.createdBy),'admin') createdBy,
							IFNULL((SELECT penName FROM salihin_cms.people, salihin_cms.user WHERE user.peopleID = people.ID AND user.ID = article_main.updatedBy),'admin') updatedBy
						FROM salihin_cms.article_main, salihin_cms.article_category
						WHERE article_main.category = article_category.ID
						AND  (feature IS NULL OR feature = 0) 
						AND article_main.status = 'PUBLISHED'
						AND article_category.status = 'PUBLISHED'
						AND NOT EXISTS(
							SELECT 1
							FROM salihin_cms.article_setting
							WHERE article_setting.article = article_main.ID
							AND article_setting.code = 'pageonly'
							AND article_setting.value = 1
						)
						ORDER BY createdDT DESC
						LIMIT 0, 8