SELECT extension_id AS id, element AS "option", params, enabled
FROMjcl24_extensions WHERE `type` = 'component' AND `element` = 'com_users'
SELECT b.id
FROMjcl24_usergroupsAS a
LEFTJOINjcl24_usergroupsAS b ON b.lft <= a.lft AND b.rgt >= a.rgt
WHERE a.id = 1
SELECT id, rules
FROM `jcl24_viewlevels`
SELECT folder AS type, element AS name, params
FROMjcl24_extensions WHERE enabled >= 1 AND type ='plugin' AND state >= 0 AND access IN (1,1)
ORDERBY ordering
SELECT extension_id AS id, element AS "option", params, enabled
FROMjcl24_extensions WHERE `type` = 'component' AND `element` = 'com_languages'
SELECT extension_id AS id, element AS "option", params, enabled
FROMjcl24_extensions WHERE `type` = 'component' AND `element` = 'com_flexicontent'
SELECT lft,rgt FROMjcl24_categories WHERE id=1
SELECTDISTINCT userid FROMjcl24_session WHERE guest=0
SELECT id, checked_out, checked_out_time FROMjcl24_content WHERE checked_out > 0
SELECT id, checked_out, checked_out_time FROMjcl24_categories WHERE checked_out > 0
SELECT id, checked_out, checked_out_time FROMjcl24_modules WHERE checked_out > 0
SELECT id, checked_out, checked_out_time FROMjcl24_menu WHERE checked_out > 0
SELECT time FROMjcl24_vvisit_counterUSEINDEX(time) ORDERBY time DESC LIMIT 1;
UPDATEjcl24_vvisit_counter SET visits=visits+1, bots=bots+1 WHERE time=1735575300;
SELECT m.id, m.menutype, m.title, m.alias, m.note, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component
FROMjcl24_menuAS m
LEFTJOINjcl24_extensionsAS e ON m.component_id = e.extension_id
WHERE m.published = 1 AND m.parent_id > 0 AND m.client_id = 0
ORDERBY m.lft
SELECT id, home, template, s.params
FROMjcl24_template_styles as s
LEFTJOINjcl24_extensions as e ON e.element=s.template AND e.type='template' AND e.client_id=s.client_id
WHERE s.client_id = 0 AND e.enabled = 1
UPDATEjcl24_content SET hits=hits+1 WHERE id = 51
UPDATEjcl24_flexicontent_items_tmp SET hits=hits+1 WHERE id = 51
SELECT* FROMjcl24_languages WHERE published=1
ORDERBY ordering ASC
SELECT catid FROMjcl24_flexicontent_cats_item_relations WHERE itemid =51 AND catid = 85
SELECT t.attribs FROMjcl24_flexicontent_typesAS t JOINjcl24_flexicontent_items_extAS ie ON ie.type_id = t.id WHERE ie.item_id = 51
SELECT i.id, i.version FROMjcl24_content as i JOINjcl24_categoriesAS c ON i.catid=c.id WHERE c.extension='com_content' AND i.id=51
SELECT item_id as id, max(version_id) as version FROMjcl24_flexicontent_versions WHERE 1 AND item_id=51 GROUPBY item_id
SELECT i.*, ie.*,mc.access as category_access, ty.access as type_access, CASEWHEN ty.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_type_access, CASEWHEN mc.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_mcat_access, CASEWHEN i.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_item_access,c.id AS catid, i.catid as maincatid,c.title AS category_title, c.alias AS category_alias, c.lft,c.rgt,ty.name AS typename, ty.alias as typealias,u.name AS author,v.rating_count as rating_count, ROUND( v.rating_sum / v.rating_count ) AS rating, ((v.rating_sum / v.rating_count)*20) as score, CASEWHENCHAR_LENGTH(i.alias) THENCONCAT_WS(':', i.id, i.alias) ELSE i.id END as slug, CASEWHENCHAR_LENGTH(c.alias) THENCONCAT_WS(':', c.id, c.alias) ELSE c.id END as categoryslug, CASEWHEN i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2024-12-30 16:13:26' THEN 0 ELSE 1 END as publication_scheduled, CASEWHEN i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2024-12-30 16:13:26' THEN 0 ELSE 1 END as publication_expired
FROMjcl24_contentAS i
LEFTJOINjcl24_flexicontent_items_extAS ie ON ie.item_id = i.id
LEFTJOINjcl24_flexicontent_typesAS ty ON ie.type_id = ty.id
LEFTJOINjcl24_usersAS u on u.id = i.created_by
LEFTJOINjcl24_content_ratingAS v ON i.id = v.content_id
LEFTJOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.itemid = i.id AND rel.catid = 85
LEFTJOINjcl24_categoriesAS c on c.id = rel.catid
LEFTJOINjcl24_categoriesAS mc on mc.id = i.catid
WHERE i.id = 51
SELECTDISTINCT tid FROMjcl24_flexicontent_tags_item_relations WHERE itemid = 51
SELECTDISTINCT catid FROMjcl24_flexicontent_cats_item_relations WHERE itemid = 51
SELECT title FROMjcl24_viewlevels WHERE id = 1
SELECT access FROMjcl24_categories WHERE id = 85
SELECT v.rating_count as rating_count, ROUND( v.rating_sum / v.rating_count ) AS rating, ((v.rating_sum / v.rating_count)*20) as score FROMjcl24_content_ratingAS v WHERE v.content_id = 51
SELECT name, email FROMjcl24_users WHERE id = 820
SELECT name, email FROMjcl24_users WHERE id = 822
SELECT c.params FROMjcl24_categoriesAS c WHERE c.id = 85
SELECT t.attribs FROMjcl24_flexicontent_typesAS t LEFTJOINjcl24_flexicontent_items_extAS ie ON ie.type_id = t.id WHERE ie.item_id = 51
SELECT a.rules
FROMjcl24_assetsAS a
WHERE (a.id = 1)
GROUPBY a.id, a.rules, a.lft
SELECT b.rules
FROMjcl24_assetsAS a
LEFTJOINjcl24_assetsAS b ON b.lft <= a.lft AND b.rgt >= a.rgt
WHERE (a.name = 'com_content.article.51')
GROUPBY b.id, b.rules, b.lft
ORDERBY b.lft
SELECT t.attribs FROMjcl24_flexicontent_typesAS t JOINjcl24_flexicontent_items_extAS ie ON ie.type_id = t.id WHERE ie.item_id = 51
SELECTDISTINCT lc.lang_id as id, lc.image as image_prefix, lc.lang_code as code, lc.title_native, CASEWHENCHAR_LENGTH(lc.title_native) THENCONCAT(lc.title, " (", lc.title_native, ")") ELSE lc.title END as name FROMjcl24_languages as lc WHERE 1 ORDERBY lc.ordering ASC
SELECTDISTINCT t.id, t.name, i.itemid, CASEWHENCHAR_LENGTH(t.alias) THENCONCAT_WS(':', t.id, t.alias) ELSE t.id END as slug FROMjcl24_flexicontent_tagsAS t JOINjcl24_flexicontent_tags_item_relationsAS i ON i.tid = t.id WHERE i.itemid IN ('51') AND t.published = 1 ORDERBY t.name
SELECTDISTINCT c.id, c.title, rel.itemid, CASEWHENCHAR_LENGTH(c.alias) THENCONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug FROMjcl24_categoriesAS c JOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.catid = c.id WHERE rel.itemid IN ('51')
SELECT itemid, COUNT(id) AS favs FROMjcl24_flexicontent_favourites WHERE itemid IN ('51') GROUPBY itemid
SELECT itemid, COUNT(id) AS fav FROMjcl24_flexicontent_favourites WHERE itemid IN ('51') AND userid = '0' GROUPBY itemid
SELECT i.id, u.name, i.created_by_alias as alias, u.username, u.email FROMjcl24_contentAS i LEFTJOINjcl24_usersAS u ON u.id = i.created_by WHERE i.id IN ('51')
SELECT i.id, u.name, u.username, u.email FROMjcl24_contentAS i LEFTJOINjcl24_usersAS u ON u.id = i.modified_by WHERE i.id IN ('51')
SELECT id, name FROMjcl24_flexicontent_types WHERE id IN ('1')
SELECT* FROMjcl24_content_rating WHERE content_id IN ('51')
SELECT*, field_id as extra_id FROMjcl24_flexicontent_items_extravote WHERE content_id IN ('51')
SELECT field_id, value, item_id FROMjcl24_flexicontent_fields_item_relations WHERE item_id IN (51) AND value > "" ORDERBY item_id, field_id, valueorder
SELECT fi.*, CASEWHEN fi.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_access FROMjcl24_flexicontent_fieldsAS fi LEFTJOINjcl24_flexicontent_fields_type_relationsAS ftrel ON ftrel.field_id = fi.id AND ftrel.type_id = 1 WHERE fi.published = 1 GROUPBY fi.id ORDERBY ftrel.ordering, fi.ordering, fi.name
SELECT* FROMjcl24_flexicontent_templates WHERE template = 'gioi-thieu' AND layout = 'items'
SELECT field_type FROMjcl24_flexicontent_fields WHERE iscore=1
SELECT t.attribs, t.name, t.alias FROMjcl24_flexicontent_typesAS t WHERE t.id = 1
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='text_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='created_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='created_by_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='modified_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='modified_by_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='title_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='hits_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='document_type_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='version_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='state_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='voting_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='favourites_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='categories_tuyen-dung'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='tags_tuyen-dung'
SELECT t.attribs, t.id FROMjcl24_flexicontent_typesAS t
SELECT b.rules
FROMjcl24_assetsAS a
LEFTJOINjcl24_assetsAS b ON b.lft <= a.lft AND b.rgt >= a.rgt
WHERE (a.name = 'com_flexicontent')
GROUPBY b.id, b.rules, b.lft
ORDERBY b.lft
SELECT m.published, m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid
FROMjcl24_modulesAS m
LEFTJOINjcl24_modules_menuAS mm ON mm.moduleid = m.id
LEFTJOINjcl24_extensionsAS e ON e.element = m.module AND e.client_id = m.client_id
WHERE m.published = 1 AND e.enabled = 1 AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up <= '2024-12-30 16:13:26') AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2024-12-30 16:13:26') AND m.access IN (1,1) AND m.client_id = 0 AND (mm.menuid = 516 OR mm.menuid <= 0)
ORDERBY m.position, m.ordering
SELECT* FROMjcl24_flexicontent_fields WHERE field_type="hits" OR field_type="voting"
SELECTDISTINCT c.id FROMjcl24_categoriesAS c WHERE c.id IN (78,78) AND c.published = 1 AND c.access IN (1,1)
SELECT i.id FROMjcl24_flexicontent_items_tmpAS i JOINjcl24_flexicontent_items_extAS ie on ie.item_id = i.id JOINjcl24_flexicontent_typesAS ty on ie.type_id = ty.id JOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.itemid = i.id JOINjcl24_categoriesAS c ON c.id = rel.catid JOINjcl24_categoriesAS mc ON mc.id = i.catid WHERE c.published = 1 AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2024-12-30 16:13:26' ) AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2024-12-30 16:13:26' ) AND ty.access IN (0,1,1) AND mc.access IN (0,1,1) AND i.access IN (0,1,1) AND i.id <> 51 AND i.state IN ( 1, -5 ) AND c.id IN (78) GROUPBY i.id ORDERBY rel.catid, rel.ordering ASC, i.title ASC LIMIT 0, 100
SELECT i.*, ie.*, ty.name AS typename, cr.rating_sum as rating_sum, cr.rating_count as rating_count, CASEWHENCHAR_LENGTH(i.alias) THENCONCAT_WS(':', i.id, i.alias) ELSE i.id END as slug, CASEWHENCHAR_LENGTH(c.alias) THENCONCAT_WS(':', c.id, c.alias) ELSE c.id END as categoryslug, GROUP_CONCAT(rel.catid SEPARATOR ",") as itemcats FROMjcl24_contentAS i JOINjcl24_flexicontent_items_extAS ie on ie.item_id = i.id JOINjcl24_flexicontent_typesAS ty on ie.type_id = ty.id JOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.itemid = i.id JOINjcl24_categoriesAS c ON c.id = rel.catid JOINjcl24_categoriesAS mc ON mc.id = i.catid LEFTJOINjcl24_content_ratingAS cr ON cr.content_id = i.id WHERE i.id IN (54,53,55,52,56,64) GROUPBY i.id LIMIT 0, 100
SELECT t.attribs, t.name, t.alias FROMjcl24_flexicontent_typesAS t WHERE t.id = 2
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='hits_dich-vu'
SELECT attribs, published FROMjcl24_flexicontent_fields WHERE name='voting_dich-vu'
SELECTSUM(visits) AS visits FROMjcl24_vvisit_counter WHERE '1=1' AND time > 1735491600
SELECT* FROMjcl24_rsform_config
UPDATE `jcl24_session`
SET `data` = '__default|a:9:{s:15:\"session.counter\";i:1;s:19:\"session.timer.start\";i:1735575206;s:18:\"session.timer.last\";i:1735575206;s:17:\"session.timer.now\";i:1735575206;s:22:\"session.client.browser\";s:103:\"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)\";s:8:\"registry\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:4:\"user\";O:5:\"JUser\":25:{s:9:\"\0*\0isRoot\";b:0;s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:6:\"groups\";a:0:{}s:5:\"guest\";i:1;s:13:\"lastResetTime\";N;s:10:\"resetCount\";N;s:10:\"\0*\0_params\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:14:\"\0*\0_authGroups\";a:1:{i:0;i:1;}s:14:\"\0*\0_authLevels\";a:2:{i:0;i:1;i:1;i:1;}s:15:\"\0*\0_authActions\";N;s:12:\"\0*\0_errorMsg\";N;s:10:\"\0*\0_errors\";a:0:{}s:3:\"aid\";i:0;}s:18:\"flexi_advroute_url\";a:10:{s:4:\"view\";s:4:\"item\";s:6:\"option\";s:16:\"com_flexicontent\";s:4:\"task\";N;s:2:\"id\";s:2:\"51\";s:3:\"cid\";s:2:\"85\";s:8:\"lang_tag\";s:5:\"en-GB\";s:6:\"ishome\";b:0;s:7:\"menu_id\";s:3:\"516\";s:11:\"menu_isitem\";b:0;s:10:\"menu_iscat\";b:0;}s:13:\"session.token\";s:32:\"69524c40e15e88120eb5646cb221cc2e\";}'
, `time` = '1735575206'
WHERE `session_id` = '8l8e0tvn3c32vai2lvmfq3v6b5'
60 Query Types Logged, Sorted by Occurrences.
SELECT Tables:
16 × SELECT attribs, published FROMjcl24_flexicontent_fields
3 × SELECT extension_id AS id, element AS "option", params, enabled FROMjcl24_extensions
2 × SELECT t.attribs, t.name, t.alias FROMjcl24_flexicontent_typesAS t
2 × SELECT name, email FROMjcl24_users
2 × SELECT t.attribs FROMjcl24_flexicontent_typesAS t JOINjcl24_flexicontent_items_extAS ie ON ie.type_id = t.id
2 × SELECT b.rules FROMjcl24_assetsAS a LEFTJOINjcl24_assetsAS b ON b.lft <= a.lft AND b.rgt >= a.rgt
1 × SELECT i.id, u.name, u.username, u.email FROMjcl24_contentAS i LEFTJOINjcl24_usersAS u ON u.id = i.modified_by
1 × SELECT id, name FROMjcl24_flexicontent_types
1 × SELECT* FROMjcl24_content_rating
1 × SELECT itemid, COUNT(id) AS favs FROMjcl24_flexicontent_favourites
1 × SELECTDISTINCT t.id, t.name, i.itemid, CASEWHENCHAR_LENGTH(t.alias) THENCONCAT_WS(':', t.id, t.alias) ELSE t.id END as slug FROMjcl24_flexicontent_tagsAS t JOINjcl24_flexicontent_tags_item_relationsAS i ON i.tid = t.id
1 × SELECTDISTINCT lc.lang_id as id, lc.image as image_prefix, lc.lang_code as code, lc.title_native, CASEWHENCHAR_LENGTH(lc.title_native) THENCONCAT(lc.title, " (", lc.title_native, ")") ELSE lc.title END as name FROMjcl24_languages as lc
1 × SELECTDISTINCT c.id, c.title, rel.itemid, CASEWHENCHAR_LENGTH(c.alias) THENCONCAT_WS(':', c.id, c.alias) ELSE c.id END as slug FROMjcl24_categoriesAS c JOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.catid = c.id
1 × SELECT*, field_id as extra_id FROMjcl24_flexicontent_items_extravote
1 × SELECT itemid, COUNT(id) AS fav FROMjcl24_flexicontent_favourites
1 × SELECT i.id, u.name, i.created_by_alias as alias, u.username, u.email FROMjcl24_contentAS i LEFTJOINjcl24_usersAS u ON u.id = i.created_by
1 × SELECT fi.*, CASEWHEN fi.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_access FROMjcl24_flexicontent_fieldsAS fi LEFTJOINjcl24_flexicontent_fields_type_relationsAS ftrel ON ftrel.field_id = fi.id AND ftrel.type_id = 1
1 × SELECT i.id FROMjcl24_flexicontent_items_tmpAS i JOINjcl24_flexicontent_items_extAS ie on ie.item_id = i.id JOINjcl24_flexicontent_typesAS ty on ie.type_id = ty.id JOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.itemid = i.id JOINjcl24_categoriesAS c ON c.id = rel.catid JOINjcl24_categoriesAS mc ON mc.id = i.catid
1 × SELECTDISTINCT c.id FROMjcl24_categoriesAS c
1 × SELECT i.*, ie.*, ty.name AS typename, cr.rating_sum as rating_sum, cr.rating_count as rating_count, CASEWHENCHAR_LENGTH(i.alias) THENCONCAT_WS(':', i.id, i.alias) ELSE i.id END as slug, CASEWHENCHAR_LENGTH(c.alias) THENCONCAT_WS(':', c.id, c.alias) ELSE c.id END as categoryslug, GROUP_CONCAT(rel.catid SEPARATOR ",") as itemcats FROMjcl24_contentAS i JOINjcl24_flexicontent_items_extAS ie on ie.item_id = i.id JOINjcl24_flexicontent_typesAS ty on ie.type_id = ty.id JOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.itemid = i.id JOINjcl24_categoriesAS c ON c.id = rel.catid JOINjcl24_categoriesAS mc ON mc.id = i.catid LEFTJOINjcl24_content_ratingAS cr ON cr.content_id = i.id
1 × SELECTSUM(visits) AS visits FROMjcl24_vvisit_counter
1 × SELECT* FROMjcl24_rsform_confi
1 × SELECT* FROMjcl24_flexicontent_fields
1 × SELECT m.published, m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid FROMjcl24_modulesAS m LEFTJOINjcl24_modules_menuAS mm ON mm.moduleid = m.id LEFTJOINjcl24_extensionsAS e ON e.element = m.module AND e.client_id = m.client_id
1 × SELECT time FROMjcl24_vvisit_counterUSEINDEX(time)
1 × SELECTDISTINCT userid FROMjcl24_session
1 × SELECT lft,rgt FROMjcl24_categories
1 × SELECT `session_id` FROM `jcl24_session`
1 × SELECT b.id FROMjcl24_usergroupsAS a LEFTJOINjcl24_usergroupsAS b ON b.lft <= a.lft AND b.rgt >= a.rgt
1 × SELECT id, rules FROM `jcl24_viewlevels
1 × SELECT folder AS type, element AS name, params FROMjcl24_extensions
1 × SELECT m.id, m.menutype, m.title, m.alias, m.note, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component FROMjcl24_menuAS m LEFTJOINjcl24_extensionsAS e ON m.component_id = e.extension_id
1 × SELECT id, home, template, s.params FROMjcl24_template_styles as s LEFTJOINjcl24_extensions as e ON e.element=s.template AND e.type='template' AND e.client_id=s.client_id
1 × SELECT v.rating_count as rating_count, ROUND( v.rating_sum / v.rating_count ) AS rating, ((v.rating_sum / v.rating_count)*20) as score FROMjcl24_content_ratingAS v
1 × SELECT `data` FROM `jcl24_session`
1 × SELECTDISTINCT tid FROMjcl24_flexicontent_tags_item_relations
1 × SELECT i.*, ie.*,mc.access as category_access, ty.access as type_access, CASEWHEN ty.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_type_access, CASEWHEN mc.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_mcat_access, CASEWHEN i.access IN (0,1,1) THEN 1 ELSE 0 ENDAS has_item_access,c.id AS catid, i.catid as maincatid,c.title AS category_title, c.alias AS category_alias, c.lft,c.rgt,ty.name AS typename, ty.alias as typealias,u.name AS author,v.rating_count as rating_count, ROUND( v.rating_sum / v.rating_count ) AS rating, ((v.rating_sum / v.rating_count)*20) as score, CASEWHENCHAR_LENGTH(i.alias) THENCONCAT_WS(':', i.id, i.alias) ELSE i.id END as slug, CASEWHENCHAR_LENGTH(c.alias) THENCONCAT_WS(':', c.id, c.alias) ELSE c.id END as categoryslug, CASEWHEN i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2024-12-30 16:13:26' THEN 0 ELSE 1 END as publication_scheduled, CASEWHEN i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2024-12-30 16:13:26' THEN 0 ELSE 1 END as publication_expired FROMjcl24_contentAS i LEFTJOINjcl24_flexicontent_items_extAS ie ON ie.item_id = i.id LEFTJOINjcl24_flexicontent_typesAS ty ON ie.type_id = ty.id LEFTJOINjcl24_usersAS u on u.id = i.created_by LEFTJOINjcl24_content_ratingAS v ON i.id = v.content_id LEFTJOINjcl24_flexicontent_cats_item_relationsAS rel ON rel.itemid = i.id AND rel.catid = 85 LEFTJOINjcl24_categoriesAS c on c.id = rel.catid LEFTJOINjcl24_categoriesAS mc on mc.id = i.catid