SELECT `folder` AS `type`,`element` AS `name`,`params` AS `params`,`extension_id` AS `id`
FROMy491z_extensionsWHERE enabled = 1 AND type = 'plugin' AND state IN (0,1) AND access IN (1,1)
ORDERBY ordering

SELECT `id`,`name`,`rules`,`parent_id`
FROM `y491z_assets`
WHERE `name` IN ('root.1','com_admin','com_admintools','com_ajax','com_associations','com_banners','com_cache','com_categories','com_checkin','com_config','com_contact','com_content','com_contenthistory','com_cpanel','com_fields','com_finder','com_installer','com_jce','com_jmap','com_joomlaupdate','com_jxtc','com_jxtceasyimage','com_languages','com_login','com_mailto','com_media','com_menus','com_messages','com_modules','com_newsfeeds','com_plugins','com_postinstall','com_redirect','com_search','com_seoglossary','com_smartcontenttabs','com_smartslider','com_tags','com_templates','com_users','com_weblinks','com_wrapper')