SELECT *
FROM jos_session
WHERE session_id = '2mpb55aq56u27r8g8iikq79dg0'
DELETE
FROM jos_session
WHERE ( time < '1728825577' )
SELECT *
FROM jos_session
WHERE session_id = '2mpb55aq56u27r8g8iikq79dg0'
INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
VALUES ( '2mpb55aq56u27r8g8iikq79dg0','1728826477','','0','1','0' )
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 id, parent_id, value, name, lft, rgt
FROM jos_core_acl_aro_groups
WHERE id=21
SELECT id, parent_id, value, name, lft, rgt
FROM jos_core_acl_aro_groups
WHERE id=23
SELECT id, parent_id, value, name, lft, rgt
FROM jos_core_acl_aro_groups
WHERE id=25
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 521)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT a.*, c.accessuserid AS cataccessuserid, c.access AS cataccess, r.count AS count, r.average AS average, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS catslug, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug
FROM jos_phocagallery AS a
LEFT JOIN jos_phocagallery_categories AS c
ON c.id = a.catid
LEFT JOIN jos_phocagallery_img_votes_statistics AS r
ON r.imgid = a.id
WHERE a.id = 58
AND a.PUBLISHED > 0
AND a.APPROVED > 0
ORDER BY a.ordering ASC
SELECT a.id, filename AS filename, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS catslug, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug
FROM jos_phocagallery AS a
LEFT JOIN jos_phocagallery_categories AS c
ON c.id = a.catid
WHERE a.catid = 5
AND a.ordering > 2
AND a.published = 1
ORDER BY a.ordering ASC
SELECT a.id, filename AS filename, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS catslug, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug
FROM jos_phocagallery AS a
LEFT JOIN jos_phocagallery_categories AS c
ON c.id = a.catid
WHERE a.catid = 5
AND a.ordering < 2
AND a.published = 1
ORDER BY a.ordering DESC
SELECT a.filename, a.extl
FROM jos_phocagallery AS a
WHERE a.catid=5
AND a.published = 1
AND a.approved = 1
ORDER BY a.ordering
UPDATE jos_phocagallery
SET hits = ( hits + 1 )
WHERE id='58'