DELETE
FROM jos_session
WHERE ( TIME < '1550296674' )
SELECT *
FROM jos_session
WHERE session_id = 'pm0l40c2rq8hjb96gknn7up2c5'
INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
VALUES ( 'pm0l40c2rq8hjb96gknn7up2c5','1550303874','','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 setting,VALUE
FROM jos_jfbconnect_config
SELECT `value`
FROM `jos_admintools_storage`
WHERE `key` = 'cparams'
SELECT *
FROM jos_redj
WHERE ( (('/directory/search-by/city/Wilkes-Barre' REGEXP BINARY fromurl)>0
AND case_sensitive<>'0') OR (('/directory/search-by/city/Wilkes-Barre' REGEXP fromurl)>0
AND case_sensitive='0') )
AND published='1'
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 `varname`, `value`, `default`
FROM jos_mt_config
SELECT cf_id, caption
FROM jos_mt_customfields
WHERE tag_search = 1
AND published = 1
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 247)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT *
FROM jos_mt_customfields AS cf
WHERE cf.cf_id = '5'
AND published = 1
AND tag_search = 1
LIMIT 1
SELECT l.*, u.username, c.*, img.filename AS link_image
FROM (jos_mt_links AS l, jos_mt_cl AS cl)
LEFT JOIN jos_mt_images AS img
ON img.link_id = l.link_id
AND img.ordering = 1
LEFT JOIN jos_mt_cats AS c
ON c.cat_id = cl.cat_id
LEFT JOIN jos_users AS u
ON u.id = l.user_id
WHERE
link_published='1'
AND link_approved='1'
AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2019-02-16 07:57:55' )
AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2019-02-16 07:57:55' )
AND cl.link_id = l.link_id
AND cl.main = 1
AND l.city LIKE '%Wilkes-Barre%'
ORDER BY link_featured DESC, link_hits DESC
LIMIT 0, 20
SELECT COUNT(DISTINCT l.link_id)
FROM (jos_mt_links AS l, jos_mt_cl AS cl)
LEFT JOIN jos_mt_cats AS c
ON c.cat_id = cl.cat_id
WHERE link_published='1'
AND link_approved='1'
AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2019-02-16 07:57:55' )
AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2019-02-16 07:57:55' )
AND cl.link_id = l.link_id
AND cl.main = 1
AND l.city LIKE '%Wilkes-Barre%'
SELECT CONCAT( 'cust_', cf_id ) AS name, caption AS VALUE, field_type
FROM jos_mt_customfields
SELECT cf.*, cfv.link_id, cfv.VALUE, cfv.attachment, cfv.counter, ft.ft_class
FROM jos_mt_customfields AS cf
LEFT JOIN jos_mt_cfvalues AS cfv
ON cf.cf_id=cfv.cf_id
LEFT JOIN jos_mt_fieldtypes AS ft
ON ft.field_type=cf.field_type
WHERE cf.published = '1'
AND cf.summary_view = '1'
AND cfv.link_id IN (16,101,288,366,67,283,474,471,346,160,372,370,123,210,355,362,358,401,390,398)
ORDER BY cf.ordering ASC, link_id DESC
SELECT cf. * , NULL AS link_id, '' AS VALUE, NULL AS attachment, ft.ft_class
FROM jos_mt_customfields AS cf
LEFT JOIN jos_mt_fieldtypes AS ft
ON ft.field_type=cf.field_type
WHERE cf.published = '1'
AND cf.summary_view = '1'
AND cf.iscore = '1'
ORDER BY cf.ordering ASC
SELECT r.link_id, COUNT( * ) AS total
FROM jos_mt_cl AS cl
LEFT JOIN jos_mt_reviews AS r
ON cl.link_id = r.link_id
WHERE cl.link_id IN ('16','101','288','366','67','283','474','471','346','160','372','370','123','210','355','362','358','401','390','398')
AND r.rev_approved = '1'
AND cl.main = '1'
GROUP BY r.link_id
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT cf_id, caption
FROM jos_mt_customfields
WHERE tag_search = 1
AND published = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT params
FROM jos_mt_templates
WHERE tem_name = 'm2'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '16'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '84'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 6
AND rgt > 7
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '84'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '84'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '101'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '93'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 24
AND rgt > 25
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '93'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '93'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '288'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '125'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 78
AND rgt > 79
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '125'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '125'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '366'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '110'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 54
AND rgt > 55
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '110'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '110'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '67'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '144'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 110
AND rgt > 111
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '144'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '144'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '283'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '92'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 22
AND rgt > 23
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '92'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '92'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '474'
AND main = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '110'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '110'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '471'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '101'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 40
AND rgt > 41
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '101'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '101'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '346'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '111'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 56
AND rgt > 57
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '111'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '111'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '160'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '99'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 36
AND rgt > 37
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '99'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '99'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '372'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '116'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 64
AND rgt > 65
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '116'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '116'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '370'
AND main = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '125'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '125'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '123'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '97'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 32
AND rgt > 33
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '97'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '97'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '210'
AND main = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '111'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '111'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '355'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '98'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 34
AND rgt > 35
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '98'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '98'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '362'
AND main = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '84'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '84'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '358'
AND main = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '111'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '111'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '401'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '137'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 98
AND rgt > 99
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '137'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '137'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '390'
AND main = 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '86'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 10
AND rgt > 11
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '86'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '86'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT l.*, cl.cat_id AS cat_id
FROM jos_mt_links AS l, jos_mt_cl AS cl
WHERE l.link_id = cl.link_id
AND l.link_id = '398'
AND main = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '116'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '116'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT j_user_id
FROM jos_jfbconnect_user_map
WHERE fb_user_id=''
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 = 247 OR mm.menuid = 0 )
ORDER BY POSITION, ordering
SELECT cat_id, cat_name
FROM jos_mt_cats
WHERE cat_approved=1
AND cat_published=1
AND cat_parent = 0
ORDER BY cat_name ASC
SELECT *, RAND() AS ordering
FROM jos_banner
WHERE showBanner = 1
AND (imptotal = 0 OR impmade < imptotal)
AND catid = 8
ORDER BY sticky DESC, ordering
LIMIT 0, 1
UPDATE jos_banner
SET impmade = impmade + 1
WHERE bid = 30
SELECT a.id, a.alias AS username, a.title AS fullname, a.catid, a.sectionid, a.introtext AS intro, u.email AS email, u.id AS user_id, 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 jos_content AS a
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_users AS u
ON u.username = a.alias
WHERE a.sectionid = 15
AND a.state = 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1