SELECT
							article_main.ID,
							article_main.title,
							article_main.image,
							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.feature,
							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,
							IFNULL((SELECT penName FROM salihin_cms.people, salihin_cms.user WHERE user.peopleID = people.ID AND user.ID = article_main.createdBy),'admin') createdBy
						FROM salihin_cms.article_main, salihin_cms.article_category
						WHERE article_main.category = article_category.ID
						AND article_main.ID != 0
						AND article_main.ID IN (
							SELECT DISTINCT a.article
							FROM salihin_cms.article_tags a
							WHERE UPPER(a.name) IN (
								SELECT DISTINCT UPPER(name) FROM salihin_cms.article_tags b WHERE b.article = 0
							)
							AND a.article != 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
						)
						UNION
						SELECT
							article_main.ID,
							article_main.title,
							article_main.image,
							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.feature,
							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,
							IFNULL((SELECT penName FROM salihin_cms.people, salihin_cms.user WHERE user.peopleID = people.ID AND user.ID = article_main.createdBy),'admin') createdBy
						FROM salihin_cms.article_main, salihin_cms.article_category
						WHERE article_main.category = article_category.ID
						AND article_main.ID != 0
						AND article_main.feature = 1
						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 feature DESC, createdDT DESC, title ASC
						LIMIT 0,6