SELECT *
FROM jos_session
WHERE session_id = 'ff18ad00a721c3b763815f7ce387e49f'
DELETE
FROM jos_session
WHERE ( TIME < '1701680850' )
SELECT *
FROM jos_session
WHERE session_id = 'ff18ad00a721c3b763815f7ce387e49f'
INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
VALUES ( 'ff18ad00a721c3b763815f7ce387e49f','1701682650','','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 id
FROM jos_toc_authors
WHERE alias = 'thomas-wilkinson-speight'
SELECT id
FROM jos_toc_authors
WHERE alias = 'thomas-wilkinson-speight'
SELECT *
FROM jos_toc_authors
WHERE id = '399'
UPDATE jos_toc_authors
SET hits = ( hits + 1 )
WHERE id='399'
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 66)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT id
FROM jos_toc_authors
WHERE alias = 'thomas-wilkinson-speight'
SELECT id
FROM jos_toc_authors
WHERE alias = 'thomas-wilkinson-speight'
SELECT *
FROM jos_toc_authors
WHERE id = '399'
SELECT author.*, IFNULL(authors.cnt,0) AS article_count, IFNULL(documents.cnt,0) AS document_count, IFNULL(links.cnt,0) AS link_count
FROM jos_toc_authors AS author
LEFT JOIN (SELECT id_author AS id, COUNT(id_author) AS cnt
FROM jos_toc_blocks_authors
GROUP BY id_author) AS authors
ON author.id = authors.id
LEFT JOIN (SELECT author_id AS id, COUNT(author_id) AS cnt
FROM jos_toc_authors_documents
GROUP BY author_id) AS documents
ON author.id = documents.id
LEFT JOIN (SELECT author_id AS id, COUNT(author_id) AS cnt
FROM jos_toc_authors_links
GROUP BY author_id) AS links
ON author.id = links.id
WHERE published = 1
AND (author.id = 399)
ORDER BY surname ASC
LIMIT 20
SELECT document.* , IF(fixto_table.author_id = 399, TRUE, FALSE) AS fixto
FROM jos_toc_documents AS document
LEFT JOIN ( SELECT *
FROM jos_toc_authors_documents
WHERE author_id = 399 ) AS fixto_table
ON document.id = fixto_table.document_id
WHERE (document.published = 1)
AND (fixto_table.author_id = 399)
SELECT document.* , IF(fixto_table.author_id = 399, TRUE, FALSE) AS fixto
FROM jos_toc_documents AS document
LEFT JOIN ( SELECT *
FROM jos_toc_authors_documents
WHERE author_id = 399 ) AS fixto_table
ON document.id = fixto_table.document_id
WHERE (document.published = 1)
AND (fixto_table.author_id = 399)
ORDER BY title ASC
LIMIT 20
SELECT link.* , IF(fixto_table.author_id = 399, TRUE, FALSE) AS fixto
FROM jos_toc_links AS link
LEFT JOIN ( SELECT *
FROM jos_toc_authors_links
WHERE author_id = 399 ) AS fixto_table
ON link.id = fixto_table.link_id
WHERE (link.published = 1)
AND (fixto_table.author_id = 399)
SELECT link.* , IF(fixto_table.author_id = 399, TRUE, FALSE) AS fixto
FROM jos_toc_links AS link
LEFT JOIN ( SELECT *
FROM jos_toc_authors_links
WHERE author_id = 399 ) AS fixto_table
ON link.id = fixto_table.link_id
WHERE (link.published = 1)
AND (fixto_table.author_id = 399)
ORDER BY title ASC
LIMIT 20
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 = 66 OR mm.menuid = 0 )
ORDER BY POSITION, ordering
SELECT guest, usertype, client_id, DATA
FROM jos_session
WHERE client_id = 0