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=1
AND jf_content.published=1
AND jf_content.reference_id IN(1,151,144,145,149,143,147,164,168,182,178,172,166,181,167,165,148,170,183,189,163,169,175,185,161,174,141,162,142,180,186,152,153,154,155,156,157,158,159,160)
AND jf_content.reference_table='menu'
SELECT value
FROM jos_sef_sm_settings
WHERE variable='ping_timeout'
SELECT *
FROM jos_jcomments_settings
WHERE lang = 'en-GB'
SELECT *
FROM jos_jcomments_settings
WHERE lang=''
AND component=''
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 0)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT a.*, u.name AS author, u.usertype, cc.title AS category, s.title AS section, 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, g.name AS groups, s.published AS sec_pub, cc.published AS cat_pub, s.access AS sec_access, cc.access AS cat_access
FROM jos_content AS a
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = cc.section
AND s.scope = "content"
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
WHERE a.id = 57
AND ( ( a.created_by = 0 ) OR ( a.state = 1
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2018-04-21 00:22:32' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2018-04-21 00:22:32' ) ) OR ( a.state = -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=1
AND jf_content.published=1
AND jf_content.reference_id IN(57)
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=1
AND jf_content.published=1
AND jf_content.reference_id IN(57)
AND jf_content.reference_table='users'
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=1
AND jf_content.published=1
AND jf_content.reference_id IN(1)
AND jf_content.reference_table='categories'
UPDATE jos_content
SET hits = ( hits + 1 )
WHERE id='57'
SELECT DISTINCT f.id AS fid, f.label AS name, v.id AS vid, v.label
FROM jos_custom_properties AS cp
INNER JOIN jos_custom_properties_fields AS f
ON (cp.field_id = f.id )
INNER JOIN jos_custom_properties_values AS v
ON (cp.value_id = v.id )
WHERE cp.content_id = '57'
AND f.published = '1'
AND f.access <= '0'
ORDER BY f.ordering, v.ordering
SELECT created_by, sectionid, catid
FROM jos_content
WHERE id='57'
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 = 184 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=1
AND jf_content.published=1
AND jf_content.reference_id IN(156,1,157,158,153)
AND jf_content.reference_table='modules'
SELECT COUNT( id ) AS count_users
FROM jos_users
SELECT COUNT( id ) AS count_items
FROM jos_content
WHERE state = "1"
SELECT COUNT( id ) AS count_links
FROM jos_weblinks
WHERE published = "1"
SELECT SUM( hits ) AS count_hits
FROM jos_content
WHERE state = "1"
SELECT *
FROM jos_languages
WHERE active=1
ORDER BY ordering
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=2
AND jf_content.published=1
AND jf_content.reference_id IN(1,151,144,145,149,143,147,164,168,182,178,172,166,181,167,165,148,170,183,189,163,169,175,185,161,174,141,162,142,180,186,152,153,154,155,156,157,158,159,160)
AND jf_content.reference_table='menu'
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=2
AND jf_content.published=1
AND jf_content.reference_id IN(169,175,163,1,170,183,185,161,180,186,142,162,174,141,148,189,143,147,165,145,151,144,164,149,167,168,166,181,172,178,182,158,159,160,157,152,153,154,155,156)
AND jf_content.reference_table='menu'