SELECT *
FROM jos_session
WHERE session_id = 'l6fih9mj2q1dsr6r2t5atlcc47'
DELETE
FROM jos_session
WHERE ( TIME < '1729565226' )
SELECT *
FROM jos_session
WHERE session_id = 'l6fih9mj2q1dsr6r2t5atlcc47'
UPDATE `jos_session`
SET `time`='1729566126',`userid`='0',`usertype`='',`username`='',`gid`='0',`guest`='1',`client_id`='0',`data`='__default|a:6:{s:15:\"session.counter\";i:1;s:19:\"session.timer.start\";i:1729566126;s:18:\"session.timer.last\";i:1729566126;s:17:\"session.timer.now\";i:1729566126;s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:1:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:3:\"gid\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:3:\"aid\";i:0;s:5:\"guest\";i:1;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:77:\"/web/htdocs/www.cifppiambello.it/home/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}}'
WHERE session_id='l6fih9mj2q1dsr6r2t5atlcc47'
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 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 *
FROM jos_xmap
SELECT *
FROM jos_menu
WHERE id = '20'
SELECT *
FROM `jos_xmap_sitemap`
WHERE id=1
SELECT *
FROM jos_xmap_items
WHERE VIEW='html'
AND sitemap_id=1
SELECT *
FROM `jos_xmap_ext`
WHERE `published`=1
AND extension NOT LIKE '%.bak'
SELECT *
FROM jos_menu
WHERE id = '20'
SELECT *
FROM jos_modules
WHERE published='1'
AND module ='mod_mainmenu'
AND params LIKE '%menutype=mainmenu%'
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=0
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=1
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=2
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=3
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=4
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT a.id, a.title, a.metakey,a.access, UNIX_TIMESTAMP(a.modified) AS modified, CASE WHEN strcmp(a.created,a.publish_up)<0 THEN UNIX_TIMESTAMP(a.publish_up) ELSE UNIX_TIMESTAMP(a.created) END AS `created`, a.sectionid,CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug,CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END AS catslug,c.title AS category,a.introtext, a.fulltext
FROM jos_content AS a,jos_categories AS c
WHERE a.catid=(2)
AND a.catid=c.id
AND a.state='1'
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2024-10-22 03:02:06' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2024-10-22 03:02:06' )
AND a.access<='0'
ORDER BY a.created DESC
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=5
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT a.id, a.title, a.metakey,a.access, UNIX_TIMESTAMP(a.modified) AS modified, CASE WHEN strcmp(a.created,a.publish_up)<0 THEN UNIX_TIMESTAMP(a.publish_up) ELSE UNIX_TIMESTAMP(a.created) END AS `created`, a.sectionid,CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END AS slug,CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END AS catslug,c.title AS category,a.introtext, a.fulltext
FROM jos_content AS a,jos_categories AS c
WHERE a.catid=(3)
AND a.catid=c.id
AND a.state='1'
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2024-10-22 03:02:06' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2024-10-22 03:02:06' )
AND a.access<='0'
ORDER BY a.created DESC
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=6
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=29
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=35
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=7
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=5
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=22
AND m.menutype = 'mainmenu'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT *
FROM jos_modules
WHERE published='1'
AND module ='mod_mainmenu'
AND params LIKE '%menutype=AlboPretorio%'
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=0
AND m.menutype = 'AlboPretorio'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=8
AND m.menutype = 'AlboPretorio'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=11
AND m.menutype = 'AlboPretorio'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=10
AND m.menutype = 'AlboPretorio'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=9
AND m.menutype = 'AlboPretorio'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=12
AND m.menutype = 'AlboPretorio'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT *
FROM jos_modules
WHERE published='1'
AND module ='mod_mainmenu'
AND params LIKE '%menutype=lascuola%'
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=0
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=6
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=15
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=7
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=16
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=8
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=17
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=19
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT id, windowtitle,name, parentid
FROM jos_downloads_containers
WHERE parentid=0
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,name, parentid
FROM jos_downloads_containers
WHERE parentid=2
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,name, parentid
FROM jos_downloads_containers
WHERE parentid=3
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,filetitle, containerid
FROM jos_downloads_files
WHERE containerid=3
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,name, parentid
FROM jos_downloads_containers
WHERE parentid=4
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,filetitle, containerid
FROM jos_downloads_files
WHERE containerid=4
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,filetitle, containerid
FROM jos_downloads_files
WHERE containerid=2
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,name, parentid
FROM jos_downloads_containers
WHERE parentid=5
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,filetitle, containerid
FROM jos_downloads_files
WHERE containerid=5
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT id, windowtitle,filetitle, containerid
FROM jos_downloads_files
WHERE containerid=0
AND published = '1'
AND groupid = '0'
ORDER BY windowtitle
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=28
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=160
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=32
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT UNIX_TIMESTAMP(modified) AS modified, UNIX_TIMESTAMP(created) AS created ,`introtext`, `fulltext`
FROM jos_content
WHERE id=140
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=36
AND m.menutype = 'lascuola'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
SELECT *
FROM jos_modules
WHERE published='1'
AND module ='mod_mainmenu'
AND params LIKE '%menutype=servizi%'
SELECT m.id, m.name, m.parent, m.link, m.TYPE, m.browserNav, m.menutype, m.ordering, m.params, m.componentid,m.home, c.name AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.TYPE='components'
AND c.id=m.componentid
WHERE m.published='1'
AND m.parent=0
AND m.menutype = 'servizi'
AND m.access <= '0'
AND ((m.params LIKE '%
lang=
%' OR m.params NOT LIKE '%
lang=%') OR m.params LIKE '%lang=it-IT%')
ORDER BY m.menutype,m.parent,m.ordering
UPDATE jos_xmap_sitemap
SET `name`='Nuova Sitemap',`expand_category`='0',`expand_section`='0',`show_menutitle`='1',`columns`='1',`exlinks`='1',`ext_image`='img_grey.gif',`menus`='mainmenu,0,1,1,0.5,daily,mod_mainmenu
AlboPretorio,1,1,1,0.5,daily,mod_mainmenu
lascuola,2,1,1,0.5,daily,mod_mainmenu
servizi,3,1,1,0.5,daily,mod_mainmenu',`exclmenus`='',`includelink`='0',`usecache`='0',`cachelifetime`='15',`classname`='xmap',`count_xml`='0',`count_html`='28',`views_xml`='0',`views_html`='2566',`lastvisit_xml`='0',`lastvisit_html`='1729566127',`excluded_items`='',`compress_xml`='0'
WHERE id=1
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 20)
ORDER BY menuid DESC
LIMIT 0, 1
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 = 20 OR mm.menuid = 0 )
ORDER BY POSITION, ordering