SELECT m.*, c.`option` AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(20,213,51,133,52,24,47,293,225,237,157,1,187,209,61,211,37,215,182,18,48,271,273,283,285,73,281,277,275,279)
AND jf_content.reference_table='menu'
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 211)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT c.*, s.id AS sectionid, s.title AS sectiontitle, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END AS slug
FROM jos_categories AS c
INNER JOIN jos_sections AS s
ON s.id = c.SECTION
WHERE c.id = 41
LIMIT 0, 1
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(41)
AND jf_content.reference_table='categories'
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(35)
AND jf_content.reference_table='sections'
SELECT cc.title AS category, 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.attribs, a.hits, a.images, a.urls, a.ordering, 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 , ROUND( v.rating_sum / v.rating_count ) AS rating, v.rating_count
FROM jos_content AS a
LEFT JOIN jos_categories AS cc
ON a.catid = cc.id
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.catid = 41
AND a.state = 1
AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2012-05-20 07:19:36' )
AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2012-05-20 07:19:36' )
ORDER BY a.created DESC, a.created DESC
LIMIT 0, 9
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(327,295,273,251,183)
AND jf_content.reference_table='categories'
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(327,295,273,251,183)
AND jf_content.reference_table='content'
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(327,295,273,251,183)
AND jf_content.reference_table='users'
SELECT cc.title AS category, 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.attribs, a.hits, a.images, a.urls, a.ordering, 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 , ROUND( v.rating_sum / v.rating_count ) AS rating, v.rating_count
FROM jos_content AS a
LEFT JOIN jos_categories AS cc
ON a.catid = cc.id
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.catid = 41
AND a.state = 1
AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2012-05-20 07:19:36' )
AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2012-05-20 07:19:36' )
ORDER BY a.created DESC, a.created DESC
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= ''
AND parentid='0'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '327'
AND parentid='0'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '327'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT a.*, 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
FROM jos_content AS a
LEFT JOIN jos_content_frontpage AS f
ON f.content_id = a.id
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE a.id=327
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(327)
AND jf_content.reference_table='content'
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '295'
AND parentid='0'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT *
FROM jos_chrono_comments
WHERE id = '27'
SELECT *
FROM jos_chrono_comments
WHERE parentid='27'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '184'
SELECT *
FROM jos_chrono_comments
WHERE parentid='184'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '312'
SELECT *
FROM jos_chrono_comments
WHERE parentid='312'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '342'
SELECT *
FROM jos_chrono_comments
WHERE parentid='342'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '344'
SELECT *
FROM jos_chrono_comments
WHERE parentid='344'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '416'
SELECT *
FROM jos_chrono_comments
WHERE parentid='416'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '567'
SELECT *
FROM jos_chrono_comments
WHERE parentid='567'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '277'
SELECT *
FROM jos_chrono_comments
WHERE parentid='277'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '29'
SELECT *
FROM jos_chrono_comments
WHERE parentid='29'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '339'
SELECT *
FROM jos_chrono_comments
WHERE parentid='339'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '65'
SELECT *
FROM jos_chrono_comments
WHERE parentid='65'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '67'
SELECT *
FROM jos_chrono_comments
WHERE parentid='67'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '212'
SELECT *
FROM jos_chrono_comments
WHERE parentid='212'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '327'
SELECT *
FROM jos_chrono_comments
WHERE parentid='327'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '71'
SELECT *
FROM jos_chrono_comments
WHERE parentid='71'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '87'
SELECT *
FROM jos_chrono_comments
WHERE parentid='87'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '127'
SELECT *
FROM jos_chrono_comments
WHERE parentid='127'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '261'
SELECT *
FROM jos_chrono_comments
WHERE parentid='261'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '280'
SELECT *
FROM jos_chrono_comments
WHERE parentid='280'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '297'
SELECT *
FROM jos_chrono_comments
WHERE parentid='297'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '303'
SELECT *
FROM jos_chrono_comments
WHERE parentid='303'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '322'
SELECT *
FROM jos_chrono_comments
WHERE parentid='322'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '328'
SELECT *
FROM jos_chrono_comments
WHERE parentid='328'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '407'
SELECT *
FROM jos_chrono_comments
WHERE parentid='407'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '410'
SELECT *
FROM jos_chrono_comments
WHERE parentid='410'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '433'
SELECT *
FROM jos_chrono_comments
WHERE parentid='433'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '480'
SELECT *
FROM jos_chrono_comments
WHERE parentid='480'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '516'
SELECT *
FROM jos_chrono_comments
WHERE parentid='516'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '531'
SELECT *
FROM jos_chrono_comments
WHERE parentid='531'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '620'
SELECT *
FROM jos_chrono_comments
WHERE parentid='620'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '690'
SELECT *
FROM jos_chrono_comments
WHERE parentid='690'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '729'
SELECT *
FROM jos_chrono_comments
WHERE parentid='729'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '737'
SELECT *
FROM jos_chrono_comments
WHERE parentid='737'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '295'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT a.*, 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
FROM jos_content AS a
LEFT JOIN jos_content_frontpage AS f
ON f.content_id = a.id
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE a.id=295
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(295)
AND jf_content.reference_table='content'
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '273'
AND parentid='0'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '273'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT a.*, 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
FROM jos_content AS a
LEFT JOIN jos_content_frontpage AS f
ON f.content_id = a.id
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE a.id=273
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(273)
AND jf_content.reference_table='content'
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '251'
AND parentid='0'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT *
FROM jos_chrono_comments
WHERE id = '110'
SELECT *
FROM jos_chrono_comments
WHERE parentid='110'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '251'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT a.*, 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
FROM jos_content AS a
LEFT JOIN jos_content_frontpage AS f
ON f.content_id = a.id
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE a.id=251
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(251)
AND jf_content.reference_table='content'
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '183'
AND parentid='0'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT *
FROM jos_chrono_comments
WHERE id = '647'
SELECT *
FROM jos_chrono_comments
WHERE parentid='647'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE id = '681'
SELECT *
FROM jos_chrono_comments
WHERE parentid='681'
AND published='1'
AND verify='1'
ORDER BY datetime
SELECT *
FROM jos_chrono_comments
WHERE component = 'com_content'
AND pageid= '183'
AND published='1'
AND verify='1'
ORDER BY datetime ASC
SELECT a.*, 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
FROM jos_content AS a
LEFT JOIN jos_content_frontpage AS f
ON f.content_id = a.id
INNER JOIN jos_categories AS cc
ON cc.id = a.catid
INNER JOIN jos_sections AS s
ON s.id = a.sectionid
WHERE a.id=183
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(183)
AND jf_content.reference_table='content'
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 = 211 OR mm.menuid = 0 )
ORDER BY POSITION, ordering
SELECT jf_content.reference_field, jf_content.VALUE, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=5
AND jf_content.published=1
AND jf_content.reference_id IN(83,33,1,103,75,16,113,101,27,95,25,29)
AND jf_content.reference_table='modules'