DELETE
FROM jos_session
WHERE ( TIME < '1618128789' )
SELECT *
FROM jos_session
WHERE session_id = 'kdeul7u5qb3iijo4djmfj2o2a1'
INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
VALUES ( 'kdeul7u5qb3iijo4djmfj2o2a1','1618135989','','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 ( (('/index.php?option=com_mtree&Itemid=247' REGEXP BINARY fromurl)>0
AND case_sensitive<>'0') OR (('/index.php?option=com_mtree&Itemid=247' 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 template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 247)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT `varname`, `value`, `default`
FROM jos_mt_config
SELECT *
FROM jos_mt_cats
WHERE cat_id='0'
AND cat_published = 1
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT COUNT(*)
FROM (jos_mt_links AS l, jos_mt_cl AS cl)
WHERE l.link_published = 1
AND l.link_approved = 1 && cl.cat_id = '0'
AND ( l.publish_up = '0000-00-00 00:00:00' OR l.publish_up <= '2021-04-11 10:13:09' )
AND ( l.publish_down = '0000-00-00 00:00:00' OR l.publish_down >= '2021-04-11 10:13:09' )
AND cl.link_id = l.link_id
SELECT cat.*
FROM jos_mt_cats AS cat
WHERE cat_published=1 && cat_approved=1 && cat_parent= '0'
ORDER BY cat_name ASC
SELECT params
FROM jos_mt_templates
WHERE tem_name = 'm2'
LIMIT 1
SELECT cat_id, cat_name, cat_cats, cat_links, cat_parent
FROM jos_mt_cats
WHERE cat_parent IN (112,83,84,85,141,122,87,88,147,120,89,90,91,144,135,140,146,134,130,145,125,92,93,94,95,96,143,137,131,98,99,100,101,102,148,118,103,129,106,124,107,82,108,136,97,109,110,132,111,121,114,127,86,115,142,116,117,138,133) && cat_published='1' && cat_approved='1'
ORDER BY cat_featured DESC, cat_name ASC
SELECT l.*, cl.*, cat.*, u.username AS username, u.name AS owner, img.filename AS link_image
FROM jos_mt_links AS l
LEFT JOIN jos_mt_cl AS cl
ON cl.link_id = l.link_id
LEFT JOIN jos_users AS u
ON u.id = l.user_id
LEFT JOIN jos_mt_cats AS cat
ON cl.cat_id = cat.cat_id
LEFT JOIN jos_mt_images AS img
ON img.link_id = l.link_id
AND img.ordering = 1
WHERE link_published='1' && link_approved='1' && cl.cat_id = '0'
AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '2021-04-11 10:13:09' )
AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '2021-04-11 10:13:09' )
ORDER BY link_featured DESC, link_name ASC
LIMIT 0, 20
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 (516,498,525,624,789,515,535,493,715,527,635,530,736,649,441,21485,625,511,772,461)
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 ('516','498','525','624','789','515','535','493','715','527','635','530','736','649','441','21485','625','511','772','461')
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 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 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 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 alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '112'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 58
AND rgt > 59
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '112'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '83'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 4
AND rgt > 5
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '83'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '85'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 8
AND rgt > 9
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '85'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '141'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 104
AND rgt > 105
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '141'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '122'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 74
AND rgt > 75
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '122'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '87'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 12
AND rgt > 13
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '87'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '88'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 14
AND rgt > 15
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '88'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '147'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 116
AND rgt > 117
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '147'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '120'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 70
AND rgt > 71
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '120'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '89'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 16
AND rgt > 17
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '89'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '90'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 18
AND rgt > 19
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '90'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '91'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 20
AND rgt > 21
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '91'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '135'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 94
AND rgt > 95
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '135'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '140'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 102
AND rgt > 103
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '140'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '146'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 114
AND rgt > 115
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '146'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '134'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 92
AND rgt > 93
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '134'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '130'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 84
AND rgt > 85
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '130'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '145'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 112
AND rgt > 113
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '145'
LIMIT 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 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 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '94'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 26
AND rgt > 27
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '94'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '95'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 28
AND rgt > 29
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '95'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '96'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 30
AND rgt > 31
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '96'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '143'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 108
AND rgt > 109
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '143'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '131'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 86
AND rgt > 87
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '131'
LIMIT 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 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '100'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 38
AND rgt > 39
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '100'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '102'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 42
AND rgt > 43
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '102'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '148'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 118
AND rgt > 119
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '148'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '118'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 68
AND rgt > 69
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '118'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '103'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 44
AND rgt > 45
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '103'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '129'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 82
AND rgt > 83
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '129'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '106'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 46
AND rgt > 47
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '106'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '124'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 76
AND rgt > 77
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '124'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '107'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 48
AND rgt > 49
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '107'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '82'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 2
AND rgt > 3
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '82'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '108'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 50
AND rgt > 51
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '108'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '136'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 96
AND rgt > 97
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '136'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '109'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 52
AND rgt > 53
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '109'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '132'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 88
AND rgt > 89
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '132'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '121'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 72
AND rgt > 73
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '121'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '114'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 60
AND rgt > 61
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '114'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '127'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 80
AND rgt > 81
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '127'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '115'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 62
AND rgt > 63
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '115'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '142'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 106
AND rgt > 107
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '142'
LIMIT 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 cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '117'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 66
AND rgt > 67
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '117'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '138'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 100
AND rgt > 101
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '138'
LIMIT 1
SELECT cat_name, cat_id, lft, rgt
FROM jos_mt_cats
WHERE cat_id = '133'
SELECT cat_id
FROM jos_mt_cats
WHERE lft < 90
AND rgt > 91
AND cat_id > 0
AND cat_parent >= 0
ORDER BY lft ASC
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '133'
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 = '516'
AND main = 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 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 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 = '498'
AND main = 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 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 = '525'
AND main = 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 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 = '624'
AND main = 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 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 = '789'
AND main = 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 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 = '515'
AND main = 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 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 = '535'
AND main = 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 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 = '493'
AND main = 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 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 = '715'
AND main = 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 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 = '527'
AND main = 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 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 = '635'
AND main = 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 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 = '530'
AND main = 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 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 = '736'
AND main = 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 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 = '649'
AND main = 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 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 = '441'
AND main = 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 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 = '21485'
AND main = 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 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 = '625'
AND main = 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 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 = '511'
AND main = 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 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 = '772'
AND main = 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 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 = '461'
AND main = 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
SELECT alias
FROM jos_mt_cats
WHERE cat_id = '0'
LIMIT 1