SELECT
							footer_link_main.title grouptitle,
							footer_link_item.ID linkid,
							footer_link_item.title linktitle,
							footer_link_item.type linktype,
							footer_link_item.url linkurl,
							footer_link_item.target linktarget
						FROM salihin_cms.footer_link_main, salihin_cms.footer_link_item
						WHERE footer_link_main.ID = footer_link_item.main
						AND footer_link_main.status = 'PUBLISHED'
						AND footer_link_item.status = 'PUBLISHED'
						ORDER BY footer_link_main.sequence ASC, footer_link_item.sequence ASC