SELECT *
FROM jos_components
WHERE parent = 0
SELECT folder AS type, element AS name, params
FROM jos_plugins
WHERE published >= 1
AND access <= 0
ORDER BY ordering
SELECT id
FROM jos_plugins
WHERE element = 'joomsef'
AND folder = 'system'
AND published = 1
SELECT *
FROM jos_sefurls
WHERE sefurl = '' OR sefurl = 'index.php'
LIMIT 1
SELECT `file`, `params`
FROM `jos_sefexts`
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 1)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering , ROUND( v.rating_sum / v.rating_count ) AS rating, v.rating_count
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
LEFT JOIN jos_content_rating AS v
ON a.id = v.content_id
WHERE 1
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-02-22 19:49:02' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-02-22 19:49:02' )
ORDER BY a.created DESC
LIMIT 0, 11
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering , ROUND( v.rating_sum / v.rating_count ) AS rating, v.rating_count
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
LEFT JOIN jos_content_rating AS v
ON a.id = v.content_id
WHERE 1
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-02-22 19:49:02' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-02-22 19:49:02' )
ORDER BY a.created DESC
SELECT `filters`
FROM `jos_sefexts`
WHERE `file` = 'com_content.xml'
LIMIT 1
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&format=feed&type=rss&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=13&id=6136&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=13&format=pdf&id=6136&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=13&id=6137&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=13&format=pdf&id=6137&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=13&format=pdf&id=6138&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=13&format=pdf&id=6139&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=14&id=6121&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=14&format=pdf&id=6121&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&id=14&layout=blog&view=category'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=7&format=pdf&id=6122&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=14&format=pdf&id=6123&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&id=14&layout=blog&view=category'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=14&id=6125&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&catid=7&id=6126&view=article'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=7&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=6132&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=7&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=14&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=21&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=28&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=42&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=49&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=56&view=frontpage'
SELECT `sefurl`, `Itemid`
FROM `jos_sefurls`
WHERE `origurl` = 'index.php?option=com_content&limitstart=63&view=frontpage'
SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 0
AND m.client_id = 0
AND ( mm.menuid = 1 OR mm.menuid = 0 )
ORDER BY position, ordering