SELECT *
FROM webt_session
WHERE session_id = 'dff27edc55420e44ec27436c12325c17'
DELETE
FROM webt_session
WHERE ( time < '1280580303' )
SELECT *
FROM webt_session
WHERE session_id = 'dff27edc55420e44ec27436c12325c17'
INSERT INTO `webt_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
VALUES ( 'dff27edc55420e44ec27436c12325c17','1280581203','','0','1','0' )
SELECT *
FROM webt_components
WHERE parent = 0
SELECT folder AS type, element AS name, params
FROM webt_plugins
WHERE published >= 1
AND access <= 0
ORDER BY ordering
SELECT id, title, alias
FROM webt_jumi
WHERE published = 1
SELECT template
FROM webt_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 1)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT menutype, id, name, link
FROM webt_menu
WHERE id = 1
AND link LIKE '%option=com_content&view=frontpage%'
SELECT *
FROM webt_ijseo_metags
WHERE mtype = 'mainmenu'
AND id = 1
SELECT *
FROM webt_ijseo_metags
WHERE mtype = 'mainmenu'
AND id = 1
SELECT *
FROM webt_ijseo_metags
WHERE id = 0
AND mtype = 'virtuemart-prod'
SELECT *
FROM webt_ijseo_metags
WHERE id = 0
AND mtype = 'virtuemart-prod'
SELECT id, title, module, position, content, showtitle, control, params
FROM webt_modules AS m
LEFT JOIN webt_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 DISTINCT
c.id AS ID,
c.section AS SID,
c.title AS name,
m.id AS MID
FROM
webt_categories AS c
LEFT JOIN
webt_menu AS m
ON
c.id = m.componentid
LEFT JOIN
webt_content AS content
ON
c.id = content.catid
WHERE
( c.id = 34 )
AND
c.published = 1;
SELECT DISTINCT
cats.title AS cat,
users.name AS author,
cats.section AS SID,
content.title AS title,
content.introtext AS text,
content.created AS date,
content.publish_up AS date_publish,
content.images AS images,
content.id AS IID,
content.hits AS hits,
content.publish_up AS publish_up,
content.publish_down AS publish_down,
CASE WHEN CHAR_LENGTH(content.alias)
THEN CONCAT_WS(":", content.id, content.alias)
ELSE content.id END AS ID,
CASE WHEN CHAR_LENGTH(cats.alias)
THEN CONCAT_WS(":", cats.id, cats.alias)
ELSE cats.id END AS CID
FROM
webt_content AS content
LEFT JOIN
webt_categories AS categories
ON categories.id = content.catid
LEFT JOIN
webt_sections AS sections
ON sections.id = content.sectionid
LEFT JOIN
webt_menu AS menu
ON menu.componentid = content.id
LEFT JOIN
webt_users AS users
ON users.id = content.created_by
LEFT JOIN
webt_content_frontpage AS frontpage
ON content.id = frontpage.content_id
LEFT JOIN
webt_categories AS cats
ON content.catid = cats.id
WHERE
content.state = 1
AND categories.published = 1
AND ( content.catid = 34 )
ORDER BY
content.ordering ASC
LIMIT
0,10;
SELECT DISTINCT
cats.title AS cat,
users.name AS author,
cats.section AS SID,
content.title AS title,
content.introtext AS text,
content.created AS date,
content.publish_up AS date_publish,
content.images AS images,
content.id AS IID,
content.hits AS hits,
content.publish_up AS publish_up,
content.publish_down AS publish_down,
CASE WHEN CHAR_LENGTH(content.alias)
THEN CONCAT_WS(":", content.id, content.alias)
ELSE content.id END AS ID,
CASE WHEN CHAR_LENGTH(cats.alias)
THEN CONCAT_WS(":", cats.id, cats.alias)
ELSE cats.id END AS CID
FROM
webt_content AS content
LEFT JOIN
webt_categories AS categories
ON categories.id = content.catid
LEFT JOIN
webt_sections AS sections
ON sections.id = content.sectionid
LEFT JOIN
webt_menu AS menu
ON menu.componentid = content.id
LEFT JOIN
webt_users AS users
ON users.id = content.created_by
LEFT JOIN
webt_content_frontpage AS frontpage
ON content.id = frontpage.content_id
LEFT JOIN
webt_categories AS cats
ON content.catid = cats.id
WHERE
content.state = 1
AND categories.published = 1
AND ( content.catid = 34 )
ORDER BY
content.ordering ASC
LIMIT
10,20;
SELECT
*
FROM
webt_gk3_photoslide_groups
WHERE
`id` = 1
LIMIT 1;
SELECT
`c`.`sectionid` AS `sid`,
`c`.`catid` AS `cid`,
`c`.`title` AS `ctitle`,
`c`.`introtext` AS `introtext`,
`i`.`name` AS `name`,
`i`.`filename` AS `filename`,
`i`.`article` AS `article`,
`i`.`title` AS `title`,
`i`.`link_type` AS `link_type`,
`i`.`link` AS `link`,
`i`.`content` AS `content`
FROM
webt_gk3_photoslide_slides AS `i`
LEFT JOIN
webt_content AS `c`
ON
`i`.`article` = `c`.`id`
WHERE
`i`.`group_id` = 1
AND
`i`.`published` = 1
AND
`i`.`access` <= 0
ORDER BY
`i`.`order`,
`i`.`access` ASC;