// // //
//
Час генерації сторінки: 0.9167 сек.
Запити до бази: 38
SET NAMES cp1251

SELECT * FROM cms_menu ORDER BY id ASC

SELECT id, title, link, config, internal, published, version, system FROM cms_components

SELECT p.id, p.plugin, p.config, e.event FROM cms_plugins p, cms_event_hooks e WHERE p.published = 1 AND e.plugin_id = p.id

SELECT id FROM cms_user_groups WHERE alias = 'guest'

DELETE FROM cms_online WHERE lastdate <= DATE_SUB(NOW(), INTERVAL 3 MINUTE)

SELECT id as getfield FROM cms_online WHERE sess_id = 'ejqri64e3f1r3km9fteponqes0' AND ip = '54.81.59.211' LIMIT 1

INSERT INTO cms_online (ip, sess_id, lastdate, user_id, agent, viewurl) VALUES ('54.81.59.211', 'ejqri64e3f1r3km9fteponqes0', NOW(), '0', 'CCBot/2.0 (http://commoncrawl.org/faq/)', '/koledg/struktura')

SELECT id FROM cms_stats WHERE (ip = '54.81.59.211' AND page = '/koledg/struktura')

INSERT INTO cms_stats (ip, logdate, page, agent, refer) VALUES ('54.81.59.211', NOW(), '/koledg/struktura', 'CCBot/2.0 (http://commoncrawl.org/faq/)', '')

SELECT NSLeft, NSRight FROM cms_menu WHERE id = '47'

SELECT id, title, link, linktype
                           FROM cms_menu
                           WHERE NSLeft <= 17 AND NSRight >= 18 AND parent_id > 0
                           ORDER BY NSLeft

SELECT *
                FROM cms_category
                WHERE seolink = 'koledg/struktura'
                LIMIT 1

SELECT group_id FROM cms_content_access WHERE content_type = 'category' AND content_id = '6'

SELECT id, title, NSLevel, seolink, url
                FROM cms_category
                WHERE NSLeft <= 33 AND NSRight >= 72 AND parent_id > 0
                ORDER BY NSLeft

SELECT group_id FROM cms_content_access WHERE content_type = 'category' AND content_id = '26'

SELECT group_id FROM cms_content_access WHERE content_type = 'category' AND content_id = '6'

SELECT cat.*
                FROM cms_category cat
                WHERE cat.parent_id = '6' AND cat.published = 1

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 36 AND cat.NSRight <= 53)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 56 AND cat.NSRight <= 61)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 62 AND cat.NSRight <= 65)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 34 AND cat.NSRight <= 35)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 54 AND cat.NSRight <= 55)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 66 AND cat.NSRight <= 67)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 68 AND cat.NSRight <= 69)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT con.id
                          FROM cms_content con
						  INNER JOIN cms_category cat ON cat.id = con.category_id AND (cat.NSLeft >= 70 AND cat.NSRight <= 71)
                          WHERE con.published = 1 AND con.is_arhive = 0

SELECT * FROM cms_photo_albums WHERE id = '0' LIMIT 1

SELECT con.*, 
                       con.pubdate as fpubdate,
                       u.nickname as author,
                       u.login as user_login
                FROM cms_content con
				LEFT JOIN cms_users u ON u.id = con.user_id
                WHERE con.category_id = '6' AND con.published = 1 AND con.is_arhive = 0 AND con.pubdate <= '2017-09-23 16:04:23'
                      AND (con.is_end=0 OR (con.is_end=1 AND con.enddate >= '2017-09-23 16:04:23'))
                ORDER BY con.pubdate ASC
                LIMIT 0, 15

SELECT 1

                FROM cms_content con

                WHERE con.is_arhive = 0
                       AND (con.category_id = 6)
 AND (con.published = 1 AND con.pubdate <= '2017-09-23 16:04:23'
                      AND (con.is_end=0 OR (con.is_end=1 AND con.enddate >= '2017-09-23 16:04:23')))

SELECT m.access_list
            FROM cms_modules m, cms_modules_bind mb
            WHERE mb.position = 'top' AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '47' OR mb.menu_id = 0)

SELECT m.access_list
            FROM cms_modules m, cms_modules_bind mb
            WHERE mb.position = 'sidebar' AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '47' OR mb.menu_id = 0)

SELECT *, m.id as mid, m.template as tpl
            FROM cms_modules m, cms_modules_bind mb
            WHERE (mb.position = 'topmenu') AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '47' OR mb.menu_id = 0)
                  
            ORDER BY m.ordering ASC

SELECT NSLeft, NSRight, NSLevel FROM cms_menu WHERE id = '47' ORDER BY id ASC LIMIT 1

SELECT id as getfield FROM cms_menu WHERE parent_id=0 LIMIT 1

SELECT * FROM cms_menu WHERE id = 1 AND NSDiffer = ''

SELECT * FROM cms_menu WHERE NSLeft > 1 AND NSRight < 64 AND NSDiffer = '' ORDER BY NSLeft,ordering

SELECT *, m.id as mid, m.template as tpl
            FROM cms_modules m, cms_modules_bind mb
            WHERE (mb.position = 'maintop') AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '47' OR mb.menu_id = 0)
                  
            ORDER BY m.ordering ASC

SELECT *, m.id as mid, m.template as tpl
            FROM cms_modules m, cms_modules_bind mb
            WHERE (mb.position = 'mainbottom') AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '47' OR mb.menu_id = 0)
                  
            ORDER BY m.ordering ASC