SELECT  article_main.ID
						FROM salihin_cms.article_main
						WHERE article_main.ID < 101
						AND NOT EXISTS (
							SELECT 1 FROM salihin_cms.article_setting
							WHERE article_setting.article = article_main.ID
							AND UPPER(article_setting.code) = 'PAGEONLY'
							AND article_setting.value = 1
						)
						AND article_main.status = 'PUBLISHED'
						ORDER BY article_main.ID desc
						LIMIT 1