I am getting very slow performance out of flexicontent and i am trying to debug flexi to see if there is any errors. Looking at the queries which i posted below many times the same query is getting posted over and over.
Why is this? Is this an error maybe some bad code somewhere? Or is this normal?
Code:
Profile Information
Application afterLoad: 0.000 seconds, 0.24 MB
Application afterInitialise: 0.116 seconds, 6.63 MB
Application afterRoute: 0.166 seconds, 9.43 MB
Application afterDispatch: 5.217 seconds, 16.57 MB
Application afterRender: 5.628 seconds, 24.57 MB
Memory Usage
26225688
205 queries logged
1.
SELECT *
FROM uscs_session
WHERE session_id = '45d6315850a15101a32fac409914e62d'
2.
DELETE
FROM uscs_session
WHERE ( time < '1293919039' )
3.
SELECT *
FROM uscs_session
WHERE session_id = '45d6315850a15101a32fac409914e62d'
4.
UPDATE `uscs_session`
SET `time`='1293922639',`userid`='0',`usertype`='',`username`='',`gid`='0',`guest`='1',`client_id`='0',`data`='8mcvm9NKVhG6Sm-_bPGegMqoZKtPCicDtyQbuvmbBD3FzO5y6Sd4JGT8E_033ftPYGFxTvvFLBfd-JTe1Ekh5UtWPsOze9r9I4JzB-FdzmsZZsKXpYKYZjHnHOHOLRKL9BH3XaYQHDoM29Bi8obPorpw-CWhy_g5B554FAlYUn7yUf9olrEnQ72T9ehM6TCgIHXBkUv0MtpjFf8mcplN8PagJW2LEhUcW0RnKao-yr43xC8qpouzaCmLgPnwVgz6xh_H-w-ZYog3EeyeD6yBCJmsswqdUTFqeY6rY-u7zeOyuXYkJEmSQ_C2dd8KyvKzXxnGrUmLQUYBtMDm2OSEXTxKM-azpp57qLqPpr_E6tBJROsx_7sLks8OaC4DIYFX5Py3oj2qk-rbw3fboYurboXuYR31uReZtGtkPfD8voWhFWZZLdZlSnaho9rhhrCQr5xZoNwEahhdGvaVYzzt38_RhRoJZCNFdWhWlGQVeiRcH4KkYf-dHcwXUK8IwU194-IKlV-IL_-Ystn9RX1NYzCaziBpKuumahA-WwL0zIooMaONDmdjLj4mqUekSTUMaDPJMJ1Gy45eiBYF-3OlzWYpI1e1YRPmaIWk9TXLrNPbIym99ZKooQCVr1T7GDDBa95rUA7ThssvqBbrYrBpfteDjFgqho6lUz3tFFnGeTbRdYkdW9rUbRfXOqX-uDObcFaXIIOrbz81608EJ-rW7gY7lDZEboGzl0Kpr1L58zBP9N-A4AIU5xCARLoLT5j8XCK8dLTmxB5xMyavCc3wlcs3L2mzLxFJeMLY3UHvye0cpDhzSoKxhuci7EquQoNu95DBu7I1VlZF88vcPYyXnRIDSPg8JuU_AIRkps_o00LfpC9neZ1-P2a7dlLPYu6GnVv5X9nzodblU2wIayDwfwCdtZlHtKuCFrYX_Q5OgYkcPe5JKVTi618XGQCdxF9Eg40Jzdw6dw9U8CRL_8iEkY_k9mULX9A6XxWXcwh1355bWSKodNdm3J08c5xsYig_tpxsopWDiHHlBlLS8yb9f2FbkbWrq-0k4w7vtABNV0KF--8w9EiSOfvgM3WhrBh9HjJyLyIRaawlAw5GtFxws63lKYvl33uiocJzRTOfJZ3auyMkZREGI4OXM-o8UhxHIn8cL8Gl1LYmOylxoqYDAbCgWLDrOOLOvQMeHt99kvSf5gX07zn69ehkpmAQVrrSVht_rt3BZZyivxKOyfY3WrYB5ZdA5GpISm21b3Iv0wfdQzNEqgfHvL2BlSV9YHAzE7ygVTZv3D4LygjVuOVOUalpLRzO6EzAKSh-8DxiQMjNsE6J6pGrGPUr0cUoMdwLQxT0WVrgxFWq_PWrlrZnr8yFyxWt1vV1qyOscBVB_QfrGvACpnDciCNZA5vlUnLMTwud5Dx4GWrvAjQhGekLkGMVlETK1kDjxeJkgvhyAfTxaXW9xlaqc7oY9DV5CYB6J6EBmiowfwjAxJwgp84gkthPbdr8lFV7mtUDBlXWkU27--raa8HEgu9O6w_qvToA7Ju3-gnGWKd1X0iOOvQiv-NUnBAscy_e_AX1QW1GSIFIuC21WaDHCgESE-I65HMzzzhFobKnqHqvLIalXy-PrRvjK2tkAuiLVstEeLOXz5kzkkm2j1SH6IgZfidDX31Ex2dzRvFqBtc-T3m5ZsKboyf0g47M4al4U6k4gal2Swy5htg8qB1MvDV8M8PNzz5S'
WHERE session_id='45d6315850a15101a32fac409914e62d'
5.
SELECT *
FROM uscs_components
WHERE parent = 0
6.
SELECT folder AS type, element AS name, params
FROM uscs_plugins
WHERE published >= 1
AND access <= 0
ORDER BY ordering
7.
SELECT id, parent_id, value, name, lft, rgt
FROM uscs_core_acl_aro_groups
WHERE id=23
8.
SELECT `ip`
FROM `uscs_admintools_ipblock`
9.
SELECT `source`
FROM `uscs_admintools_redirects`
WHERE (`dest` = '' OR `dest` = '')
AND `published` = 1
ORDER BY `ordering` DESC
LIMIT 0,1
10.
SELECT m.*, c.`option` AS component
FROM uscs_menu AS m
LEFT JOIN uscs_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
11.
SELECT newurl
FROM uscs_sh404sef_aliases
WHERE alias = ''
12.
SELECT m.*, c.`option` AS component
FROM uscs_menu AS m
LEFT JOIN uscs_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
13.
SELECT access
FROM uscs_menu
WHERE id = 1
14.
SELECT template
FROM uscs_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 1)
ORDER BY menuid DESC
LIMIT 0, 1
15.
SELECT params
FROM uscs_categories
WHERE id = 191
16.
SELECT c.*, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug
FROM uscs_categories AS c
WHERE c.id = 191
AND c.published = 1
17.
SELECT params
FROM uscs_categories
WHERE id = 191
18.
SELECT access
FROM uscs_categories
WHERE id = 191
19.
SELECT c.*, CASE WHEN CHAR_LENGTH( c.alias ) THEN CONCAT_WS( ':', c.id, c.alias ) ELSE c.id END AS slug
FROM uscs_categories AS c
LEFT JOIN uscs_flexiaccess_acl AS gi
ON c.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE c.published = 1
AND c.parent_id = 191
ORDER BY ordering ASC
20.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (102)
21.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 102
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
22.
SELECT params
FROM uscs_categories
WHERE id = 102
23.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
24.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('102','224','192','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
25.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('102','224','192','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
26.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (224)
27.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 224
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
28.
SELECT params
FROM uscs_categories
WHERE id = 224
29.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
30.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('224','102','192','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
31.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('224','102','192','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
32.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (192)
33.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 192
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
34.
SELECT params
FROM uscs_categories
WHERE id = 192
35.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
36.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('192','102','224','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
37.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('192','102','224','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
38.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (233)
39.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 233
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
40.
SELECT params
FROM uscs_categories
WHERE id = 233
41.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
42.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('233','102','224','192','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
43.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('233','102','224','192','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
44.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (228)
45.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 228
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
46.
SELECT params
FROM uscs_categories
WHERE id = 228
47.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
48.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('228','102','224','192','233','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
49.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('228','102','224','192','233','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
50.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (229)
51.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 229
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
52.
SELECT params
FROM uscs_categories
WHERE id = 229
53.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
54.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('229','102','224','192','233','228','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
55.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('229','102','224','192','233','228','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
56.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (230)
57.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 230
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
58.
SELECT params
FROM uscs_categories
WHERE id = 230
59.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
60.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('230','102','224','192','233','228','229','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
61.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('230','102','224','192','233','228','229','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
62.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (232)
63.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 232
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
64.
SELECT params
FROM uscs_categories
WHERE id = 232
65.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
66.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('232','102','224','192','233','228','229','230','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
67.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('232','102','224','192','233','228','229','230','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
68.
SELECT DISTINCT itemid
FROM uscs_flexicontent_cats_item_relations AS rel
LEFT JOIN uscs_content AS i
ON rel.itemid = i.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_categories AS cc
ON cc.id = rel.catid
LEFT JOIN uscs_flexiaccess_acl AS gc
ON cc.id = gc.axo
AND gc.aco = "read"
AND gc.axosection = "category"
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE cc.published = 1
AND i.state IN (1, -5)
AND rel.catid IN (257)
69.
SELECT DISTINCTROW sc.*, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', sc.id, sc.alias) ELSE sc.id END AS slug
FROM uscs_categories AS sc
LEFT JOIN uscs_flexiaccess_acl AS gi
ON sc.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "category"
WHERE sc.published = 1
AND sc.parent_id = 257
AND (gi.aro IN ( 0 ) OR sc.access <= 0)
ORDER BY ordering ASC
70.
SELECT params
FROM uscs_categories
WHERE id = 257
71.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
72.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('257','102','224','192','233','228','229','230','232')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
73.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('257','102','224','192','233','228','229','230','232')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
74.
SELECT params
FROM uscs_categories
WHERE id = 191
75.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
76.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('191','102','224','192','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
77.
SELECT DISTINCT i.*, ie.*, u.name AS author, ty.name AS typename, CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(':', i.id, i.alias) ELSE i.id END AS slug
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ie.item_id = i.id
LEFT JOIN uscs_flexicontent_types AS ty
ON ie.type_id = ty.id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id = i.catid
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
LEFT JOIN uscs_flexiaccess_acl AS gi
ON i.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "item"
WHERE rel.catid IN ('191','102','224','192','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2011-01-01 22:57' )
AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2011-01-01 22:57' )
AND i.sectionid = 19
ORDER BY i.created DESC, i.title
LIMIT 0, 10
78.
SELECT params
FROM uscs_categories
WHERE id = 191
79.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
WHERE fi.access <= 0
AND fi.published = 1
AND fi.isfilter = 1
ORDER BY fi.ordering, fi.name
80.
SELECT LOWER(SUBSTRING(i.title
FROM 1 FOR 1)) AS alpha
FROM uscs_content AS i
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON i.id = ie.item_id
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.itemid = i.id
LEFT JOIN uscs_categories AS c
ON c.id IN ('191','102','224','192','233','228','229','230','232','257')
WHERE rel.catid IN ('191','102','224','192','233','228','229','230','232','257')
AND i.state IN (1, -5)
AND i.sectionid = 19
GROUP BY alpha
ORDER BY alpha ASC
81.
SELECT DISTINCT t.name, i.itemid, CASE WHEN CHAR_LENGTH(t.alias) THEN CONCAT_WS(':', t.id, t.alias) ELSE t.id END AS slug
FROM uscs_flexicontent_tags AS t
LEFT JOIN uscs_flexicontent_tags_item_relations AS i
ON i.tid = t.id
WHERE i.itemid IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
AND t.published = 1
ORDER BY i.itemid, t.name
82.
SELECT DISTINCT c.id, c.title, rel.itemid, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug
FROM uscs_categories AS c
LEFT JOIN uscs_flexicontent_cats_item_relations AS rel
ON rel.catid = c.id
WHERE rel.itemid IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
83.
SELECT itemid, COUNT(id) AS favs
FROM uscs_flexicontent_favourites
WHERE itemid IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
GROUP BY itemid
84.
SELECT itemid, COUNT(id) AS fav
FROM uscs_flexicontent_favourites
WHERE itemid IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
AND userid = 0
GROUP BY itemid
85.
SELECT i.id, u.name, u.username, u.email
FROM uscs_content AS i
LEFT JOIN uscs_users AS u
ON u.id = i.modified_by
WHERE i.id IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
86.
SELECT i.id, u.name, i.created_by_alias AS alias, u.username, u.email
FROM uscs_content AS i
LEFT JOIN uscs_users AS u
ON u.id = i.created_by
WHERE i.id IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
87.
SELECT ie.item_id, t.name
FROM uscs_flexicontent_items_ext AS ie
LEFT JOIN uscs_flexicontent_types AS t
ON t.id = ie.type_id
WHERE ie.item_id IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
88.
SELECT *
FROM uscs_content_rating
WHERE content_id IN (7878,7877,7876,7872,7871,7868,7865,7864,7856,7855)
89.
SELECT fi.*
FROM uscs_flexicontent_fields AS fi
LEFT JOIN uscs_flexicontent_fields_type_relations AS ftrel
ON ftrel.field_id = fi.id
LEFT JOIN uscs_flexicontent_items_ext AS ie
ON ftrel.type_id = ie.type_id
LEFT JOIN uscs_flexiaccess_acl AS gi
ON fi.id = gi.axo
AND gi.aco = "read"
AND gi.axosection = "field"
WHERE ie.item_id = 7878
AND fi.published = 1
AND (gi.aro IN ( 0 ) OR fi.access <= 0)
GROUP BY fi.id
ORDER BY ftrel.ordering, fi.ordering, fi.name
90.
SELECT field_id, value
FROM uscs_flexicontent_fields_item_relations
WHERE item_id = 7878
ORDER BY field_id, valueorder
91.
SELECT id AS value, filename AS text
FROM uscs_flexicontent_files
WHERE ext = 'mp3'
AND secure = 0
ORDER BY filename ASC
92.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 382
93.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 383
94.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 384
95.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 385
96.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 386
97.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 387
98.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 388
99.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 389
100.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 390
101.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 391
102.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 392
103.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 393
104.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 394
105.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 396
106.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 398
107.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 397
108.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 399
109.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 400
110.
SELECT filename, altname, ext
FROM uscs_flexicontent_files
WHERE id = 401