UPDATE nsu_menu
SET
componentid = 0
WHERE link = 'index.php?option=com_livechat&view=popup'
AND componentid <> 0;
SELECT m.*, c.`option` AS component
FROM nsu_menu AS m
LEFT JOIN nsu_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 nsu_jf_content AS jf_content
WHERE jf_content.language_id=4
AND jf_content.published=1
AND jf_content.reference_id IN(82,70,1,77,2,75,3,74,60,73,62,63,64,65,66,71,4,5,6,7,8,9,10,61,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,59,47,48,49,50,51,52,53,54,55,56,57,58)
AND jf_content.reference_table='menu'
SELECT template
FROM nsu_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
FROM nsu_content AS a
INNER JOIN nsu_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN nsu_categories AS cc
ON cc.id = a.catid
LEFT JOIN nsu_sections AS s
ON s.id = a.sectionid
LEFT JOIN nsu_users AS u
ON u.id = a.created_by
LEFT JOIN nsu_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 0
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 <= '2010-07-30 16:52:51' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2010-07-30 16:52:51' )
ORDER BY f.ordering
LIMIT 0, 9
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=4
AND jf_content.published=1
AND jf_content.reference_id IN(65,3,2)
AND jf_content.reference_table='content'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=4
AND jf_content.published=1
AND jf_content.reference_id IN(65,3,2)
AND jf_content.reference_table='users'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=4
AND jf_content.published=1
AND jf_content.reference_id IN(3,2)
AND jf_content.reference_table='categories'
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
FROM nsu_content AS a
INNER JOIN nsu_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN nsu_categories AS cc
ON cc.id = a.catid
LEFT JOIN nsu_sections AS s
ON s.id = a.sectionid
LEFT JOIN nsu_users AS u
ON u.id = a.created_by
LEFT JOIN nsu_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 0
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 <= '2010-07-30 16:52:51' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2010-07-30 16:52:51' )
ORDER BY f.ordering
SELECT SQL_NO_CACHE
app_id,
app_data
FROM nsu_cms_app
WHERE app_name = 'JLive! Chat'
LIMIT 1;
SELECT id, title, module, position, content, showtitle, control, params
FROM nsu_modules AS m
LEFT JOIN nsu_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
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=4
AND jf_content.published=1
AND jf_content.reference_id IN(19,25,1,26,17,24,20,21,37,36,42)
AND jf_content.reference_table='modules'
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 nsu_content AS a
LEFT JOIN nsu_content_frontpage AS f
ON f.content_id = a.id
INNER JOIN nsu_categories AS cc
ON cc.id = a.catid
INNER JOIN nsu_sections AS s
ON s.id = a.sectionid
WHERE ( a.state = 1
AND s.id > 0 )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2010-07-30 16:52:51' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2010-07-30 16:52:51' )
AND a.access <= 0
AND cc.access <= 0
AND s.access <= 0
AND s.published = 1
AND cc.published = 1
ORDER BY a.hits DESC
LIMIT 0, 5
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=4
AND jf_content.published=1
AND jf_content.reference_id IN(1,15,16,4,5)
AND jf_content.reference_table='content'
SELECT id, title, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', id, alias) ELSE id END AS slug
FROM nsu_polls
WHERE id = 1
AND published = 1
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=4
AND jf_content.published=1
AND jf_content.reference_id IN(1)
AND jf_content.reference_table='polls'
SELECT id, text
FROM nsu_poll_data
WHERE pollid = 1
AND text <> ""
ORDER BY id
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE ip='38.107.191.86'
AND (tm + '600') > '1280508771'
INSERT INTO nsu_vvisitcounter (id, tm, ip)
VALUES ('', '1280508771', '38.107.191.86')
SELECT MAX(id)
FROM nsu_vvisitcounter
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE tm >= '1280444400'
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE tm >= '1280358000'
AND tm < '1280444400'
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE tm >= '1280012400'
AND tm < '1280444400'
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE tm >= '1279407600'
AND tm < '1280012400'
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE tm >= '1277938800'
AND tm < '1280444400'
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE tm >= '1275346800'
AND tm < '1277938800'
SELECT COUNT(*)
FROM nsu_vvisitcounter
WHERE tm >= '1280507571'
SELECT *
FROM nsu_languages
WHERE active=1
ORDER BY ordering
SELECT m.*, c.`option` AS component
FROM nsu_menu AS m
LEFT JOIN nsu_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 nsu_jf_content AS jf_content
WHERE jf_content.language_id=3
AND jf_content.published=1
AND jf_content.reference_id IN(82,70,1,77,2,75,3,74,60,73,62,63,64,65,66,71,4,5,6,7,8,9,10,61,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,59,47,48,49,50,51,52,53,54,55,56,57,58)
AND jf_content.reference_table='menu'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=3
AND jf_content.published=1
AND jf_content.reference_id IN(1)
AND jf_content.reference_table='menu'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM nsu_jf_content AS jf_content
WHERE jf_content.language_id=2
AND jf_content.published=1
AND jf_content.reference_id IN(1)
AND jf_content.reference_table='menu'
SELECT id
FROM nsu_components
WHERE name = 'JLive! Chat'
LIMIT 1;