Select Queries (17)
Array
(
[0] => Array
(
[q] => SELECT * FROM cb_config
[timetook] => 0.00032210350036621
[memBefore] => 0.41710662841797
[memAfter] => 0.44362640380859
[memUsed] => 0.026519775390625
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/functions_db.php(10): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/my_queries.class.php(41): db_select()
#5 /srv/http/clipbucket/upload/includes/common.php(102): myquery->Get_Website_Details()
#6 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#7 /srv/http/clipbucket/upload/index.php(6): require()
)
[1] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session ='6t5bkjp98v0jdpq9kgbfll7h7t'
[timetook] => 0.00017786026000977
[memBefore] => 0.44362640380859
[memAfter] => 0.65885162353516
[memUsed] => 0.21522521972656
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/session.class.php(110): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/user.class.php(5641): Session->get_sessions()
#6 /srv/http/clipbucket/upload/includes/classes/user.class.php(1460): userquery->get_sessions()
#7 /srv/http/clipbucket/upload/includes/classes/user.class.php(1404): userquery->init()
#8 /srv/http/clipbucket/upload/includes/functions.php(500): userquery->getInstance()
#9 /srv/http/clipbucket/upload/includes/classes/user.class.php(230): user_id()
#10 /srv/http/clipbucket/upload/includes/common.php(157): User->getInstance()
#11 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#12 /srv/http/clipbucket/upload/index.php(6): require()
)
[2] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session_string='guest' AND session ='6t5bkjp98v0jdpq9kgbfll7h7t'
[timetook] => 7.2956085205078E-5
[memBefore] => 0.64793395996094
[memAfter] => 0.66458892822266
[memUsed] => 0.016654968261719
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/session.class.php(92): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/session.class.php(48): Session->get_user_session()
#6 /srv/http/clipbucket/upload/includes/classes/user.class.php(5648): Session->add_session()
#7 /srv/http/clipbucket/upload/includes/classes/user.class.php(1460): userquery->get_sessions()
#8 /srv/http/clipbucket/upload/includes/classes/user.class.php(1404): userquery->init()
#9 /srv/http/clipbucket/upload/includes/functions.php(500): userquery->getInstance()
#10 /srv/http/clipbucket/upload/includes/classes/user.class.php(230): user_id()
#11 /srv/http/clipbucket/upload/includes/common.php(157): User->getInstance()
#12 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#13 /srv/http/clipbucket/upload/index.php(6): require()
)
[3] => Array
(
[q] => SELECT version.id, version.version, version.revision FROM cb_version AS version
[timetook] => 6.6041946411133E-5
[memBefore] => 0.66458892822266
[memAfter] => 0.66806793212891
[memUsed] => 0.00347900390625
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/update.class.php(62): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/update.class.php(820): Update->getDBVersion()
#6 /srv/http/clipbucket/upload/includes/classes/user.class.php(82): Update->IsCurrentDBVersionIsHigherOrEqualTo()
#7 /srv/http/clipbucket/upload/includes/classes/user.class.php(233): User->__construct()
#8 /srv/http/clipbucket/upload/includes/common.php(157): User->getInstance()
#9 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#10 /srv/http/clipbucket/upload/index.php(6): require()
)
[4] => Array
(
[q] => SELECT user_levels_permissions.id_user_levels_permission, user_levels_permissions.id_user_permission_types, user_levels_permissions.permission_name, user_levels_permissions.permission_description, user_levels_permissions_values.user_level_id, user_levels_permissions_values.id_user_levels_permission, user_levels_permissions_values.permission_value
FROM cb_user_levels_permissions AS user_levels_permissions INNER JOIN cb_user_levels_permissions_values AS user_levels_permissions_values ON user_levels_permissions.id_user_levels_permission = user_levels_permissions_values.id_user_levels_permission WHERE user_levels_permissions_values.user_level_id = 4
[timetook] => 0.00018501281738281
[memBefore] => 0.66806793212891
[memAfter] => 0.67517852783203
[memUsed] => 0.007110595703125
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/user_level.class.php(140): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/user_level.class.php(41): UserLevel->getAllPermissions()
#5 /srv/http/clipbucket/upload/includes/classes/user_level.class.php(72): UserLevel->getPermissions()
#6 /srv/http/clipbucket/upload/includes/classes/user_level.class.php(86): UserLevel->getPermission()
#7 /srv/http/clipbucket/upload/includes/classes/user.class.php(631): UserLevel->hasPermission()
#8 /srv/http/clipbucket/upload/includes/classes/user.class.php(665): User->hasPermission()
#9 /srv/http/clipbucket/upload/includes/common.php(157): User->hasAdminAccess()
#10 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#11 /srv/http/clipbucket/upload/index.php(6): require()
)
[5] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 9.6797943115234E-5
[memBefore] => 0.67517852783203
[memAfter] => 0.6990966796875
[memUsed] => 0.023918151855469
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/lang.class.php(318): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/lang.class.php(75): Language->getDefaultLanguage()
#6 /srv/http/clipbucket/upload/includes/classes/lang.class.php(14): Language->init()
#7 /srv/http/clipbucket/upload/includes/functions.php(1078): Language->getInstance()
#8 /srv/http/clipbucket/upload/includes/classes/collections.class.php(1089): lang()
#9 /srv/http/clipbucket/upload/includes/classes/photos.class.php(1069): Collections->__construct()
#10 /srv/http/clipbucket/upload/includes/classes/photos.class.php(1024): CBPhotos->init_collections()
#11 /srv/http/clipbucket/upload/includes/common.php(241): CBPhotos->init_photos()
#12 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#13 /srv/http/clipbucket/upload/index.php(6): require()
)
[6] => Array
(
[q] => SELECT language_key, translation FROM cb_languages_keys AS LK
LEFT JOIN cb_languages_translations AS LT ON LK.id_language_key = LT.id_language_key AND LT.language_id = 3 ORDER BY CASE WHEN LT.translation IS NULL THEN concat('aaaaaaaaaaaaaaaaaaaa',language_key) ELSE LK.language_key END
[timetook] => 0.0063419342041016
[memBefore] => 0.6990966796875
[memAfter] => 0.79550933837891
[memUsed] => 0.096412658691406
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/lang.class.php(156): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/lang.class.php(217): Language->getAllTranslations()
#6 /srv/http/clipbucket/upload/includes/classes/lang.class.php(84): Language->loadTranslations()
#7 /srv/http/clipbucket/upload/includes/classes/lang.class.php(14): Language->init()
#8 /srv/http/clipbucket/upload/includes/functions.php(1078): Language->getInstance()
#9 /srv/http/clipbucket/upload/includes/classes/collections.class.php(1089): lang()
#10 /srv/http/clipbucket/upload/includes/classes/photos.class.php(1069): Collections->__construct()
#11 /srv/http/clipbucket/upload/includes/classes/photos.class.php(1024): CBPhotos->init_collections()
#12 /srv/http/clipbucket/upload/includes/common.php(241): CBPhotos->init_photos()
#13 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#14 /srv/http/clipbucket/upload/index.php(6): require()
)
[7] => Array
(
[q] => SELECT tools.id_tool, language_key_label, language_key_description, elements_total, elements_done, COALESCE(NULLIF(language_key_title, ''), 'ready') as language_key_title, function_name, code,
CASE WHEN elements_total IS NULL OR elements_total = 0 THEN 0 ELSE elements_done * 100 / elements_total END AS pourcentage_progress, tools_histo.id_histo
,tools.is_automatable, tools.is_disabled, tools.frequency
FROM cb_tools AS tools
LEFT JOIN (
SELECT id_tool, MAX(date_start) AS max_date
FROM cb_tools_histo
GROUP BY id_tool
) tools_histo_max_date ON tools.id_tool = tools_histo_max_date.id_tool
LEFT JOIN cb_tools_histo AS tools_histo ON tools.id_tool = tools_histo.id_tool AND tools_histo.date_start = tools_histo_max_date.max_date
left JOIN cb_tools_histo_status AS tools_histo_status ON tools_histo_status.id_tools_histo_status = tools_histo.id_tools_histo_status
WHERE (tools_histo.id_tool IS NOT NULL OR tools_histo_max_date.id_tool IS NULL)
AND tools.code = 'automate'
ORDER BY tools.id_tool;
[timetook] => 0.056708097457886
[memBefore] => 0.79550933837891
[memAfter] => 0.94241333007812
[memUsed] => 0.14690399169922
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(109): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(266): AdminTool->getTools()
#5 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(66): AdminTool->getToolByCode()
#6 /srv/http/clipbucket/upload/includes/common.php(325): AdminTool->initByCode()
#7 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#8 /srv/http/clipbucket/upload/index.php(6): require()
)
[8] => Array
(
[q] => SELECT tools_histo.date_start
FROM cb_tools_histo AS tools_histo
WHERE tools_histo.id_tool = 17
ORDER BY tools_histo.date_start DESC LIMIT 1
[timetook] => 0.046694993972778
[memBefore] => 0.94241333007812
[memAfter] => 0.94446563720703
[memUsed] => 0.0020523071289062
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(1243): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/common.php(325): AdminTool->getLastStart()
#5 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#6 /srv/http/clipbucket/upload/index.php(6): require()
)
[9] => Array
(
[q] => SELECT * FROM cb_plugins WHERE plugin_active='yes'
[timetook] => 7.9870223999023E-5
[memBefore] => 0.94446563720703
[memAfter] => 0.94571685791016
[memUsed] => 0.001251220703125
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/plugin.class.php(216): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/plugins.php(3): CBPlugin->getInstalledPlugins()
#6 /srv/http/clipbucket/upload/includes/config.inc.php(21): require_once()
#7 /srv/http/clipbucket/upload/index.php(6): require()
)
[10] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 0.00012302398681641
[memBefore] => 0.94571685791016
[memAfter] => 0.94761657714844
[memUsed] => 0.0018997192382812
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/lang.class.php(318): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/functions.php(1131): Language->getDefaultLanguage()
#6 /srv/http/clipbucket/upload/player/CB_video_js/cb_video_js.php(24): get_current_language()
#7 /srv/http/clipbucket/upload/player/CB_video_js/cb_video_js.php(130): CB_video_js->load_dependancies()
#8 /srv/http/clipbucket/upload/player/CB_video_js/cb_video_js.php(135): CB_video_js->__construct()
#9 /srv/http/clipbucket/upload/includes/plugins.php(35): include_once()
#10 /srv/http/clipbucket/upload/includes/config.inc.php(21): require_once()
#11 /srv/http/clipbucket/upload/index.php(6): require()
)
[11] => Array
(
[q] => SELECT userid FROM cb_users WHERE username='anonymous' AND email='anonymous@website' LIMIT 1
[timetook] => 0.00016903877258301
[memBefore] => 0.94761657714844
[memAfter] => 0.95425415039062
[memUsed] => 0.0066375732421875
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(187): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/user.class.php(4786): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/index.php(15): userquery->get_anonymous_user()
)
[12] => Array
(
[q] => SELECT playlists.playlist_id, playlists.playlist_name, playlists.userid, playlists.playlist_type, playlists.description, playlists.privacy, playlists.total_items, playlists.last_update, playlists.runtime, playlists.first_item, playlists.cover, playlists.played, playlists.date_added, users.username AS user_username, GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS playlists_tags, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category
FROM cb_playlists AS playlists
LEFT JOIN cb_users AS users ON playlists.userid = users.userid LEFT JOIN cb_playlist_tags AS playlist_tags ON playlists.playlist_id = playlist_tags.id_playlist LEFT JOIN cb_tags AS tags ON playlist_tags.id_tag = tags.id_tag LEFT JOIN cb_playlists_categories AS playlists_categories ON playlists.playlist_id = playlists_categories.id_playlist LEFT JOIN cb_categories AS categories ON playlists_categories.id_category = categories.category_id WHERE ((playlists.privacy = 'public' AND playlists.total_items > 0) ) GROUP BY playlists.playlist_id ORDER BY playlists.total_items DESC LIMIT 4
[timetook] => 0.00040578842163086
[memBefore] => 0.95425415039062
[memAfter] => 0.95863342285156
[memUsed] => 0.0043792724609375
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/playlist.class.php(220): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/index.php(45): Playlist->getAll()
)
[13] => Array
(
[q] => SELECT video.videoid, video.videokey, video.video_password, video.username, video.userid, video.title, video.file_name, video.file_type, video.file_directory, video.description, video.broadcast, video.location, video.datecreated, video.country, video.allow_embedding, video.allow_comments, video.comment_voting, video.comments_count, video.last_commented, video.featured, video.featured_date, video.allow_rating, video.active, video.favourite_count, video.playlist_count, video.views, video.last_viewed, video.date_added, video.flagged, video.duration, video.status, video.default_thumb, video.embed_code, video.downloads, video.uploader_ip, video.video_files, video.file_server_path, video.video_version, video.subscription_email, video.is_castable, video.bits_color, video.age_restriction, video.default_poster, video.default_backdrop, video.fov, video.convert_percent, video.aspect_ratio, video.default_thumbnail, video.total_rate_up, video.total_rate_down, video.id_tmdb, video.type_tmdb, video.use_backdrop_as_default_thumb, users.username AS user_username, GROUP_CONCAT( DISTINCT(users_video.username) SEPARATOR ',') AS video_users
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_video_users AS video_users ON video_users.videoid = video.videoid LEFT JOIN cb_users AS users_video ON users_video.userid = video_users.userid WHERE ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public'))) GROUP BY video.videoid,video.videokey,video.video_password,video.username,video.userid,video.title,video.file_name,video.file_type,video.file_directory,video.description,video.broadcast,video.location,video.datecreated,video.country,video.allow_embedding,video.allow_comments,video.comment_voting,video.comments_count,video.last_commented,video.featured,video.featured_date,video.allow_rating,video.active,video.favourite_count,video.playlist_count,video.views,video.last_viewed,video.date_added,video.flagged,video.duration,video.status,video.default_thumb,video.embed_code,video.downloads,video.uploader_ip,video.video_files,video.file_server_path,video.video_version,video.subscription_email,video.is_castable,video.bits_color,video.age_restriction,video.default_poster,video.default_backdrop,video.fov,video.convert_percent,video.aspect_ratio,video.default_thumbnail,video.total_rate_up,video.total_rate_down,video.id_tmdb,video.type_tmdb,video.use_backdrop_as_default_thumb,users.username,video.date_added ORDER BY video.date_added DESC LIMIT 20
[timetook] => 0.013640165328979
[memBefore] => 0.95863342285156
[memAfter] => 1.0021133422852
[memUsed] => 0.043479919433594
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/video.class.php(613): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/index.php(57): Video->getAll()
)
[14] => Array
(
[q] => SELECT COUNT(DISTINCT video.videoid) AS count
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_video_users AS video_users ON video_users.videoid = video.videoid LEFT JOIN cb_users AS users_video ON users_video.userid = video_users.userid WHERE ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public')))
[timetook] => 0.00077390670776367
[memBefore] => 1.0021133422852
[memAfter] => 1.0563507080078
[memUsed] => 0.054237365722656
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/video.class.php(613): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/index.php(71): Video->getAll()
)
[15] => Array
(
[q] => SELECT collections.collection_id
, collections.collection_name
, collections.collection_description
, collections.userid
, collections.date_added
, collections.featured
, collections.broadcast
, collections.allow_comments
, collections.allow_rating
, collections.total_comments
, collections.last_commented
, collections.active
, collections.public_upload
, collections.type
, collections.collection_id_parent
, collections.thumb_objectid
, collections.sort_type
, collections.hierarchy_featured
, collections.total_rate_up
, collections.total_rate_down
, users.username AS user_username, users.email, users.dob
, collection_parent.collection_name AS collection_name_parent
, COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) AS total_objects
, sorts.label as sort_type_label
, sorts.id as sort_type
, COUNT(DISTINCT(collections_enfant.collection_id)) as nb_childs
, GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS tags
, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category
, GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ',') AS category_names
FROM cb_collections AS collections
LEFT JOIN cb_users AS users ON collections.userid = users.userid
LEFT JOIN cb_collection_items AS collection_items ON collections.collection_id = collection_items.collection_id
LEFT JOIN cb_video AS video ON collections.type = 'videos' AND collection_items.object_id = video.videoid AND ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public' OR (video.broadcast = 'unlisted' AND video.video_password = ''))))
LEFT JOIN cb_photos AS photos ON collections.type = 'photos' AND collection_items.object_id = photos.photo_id AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public' OR (photos.broadcast = 'unlisted')))) AND collection_items.collection_id IS NOT NULL ) LEFT JOIN cb_collections collection_parent ON collections.collection_id_parent = collection_parent.collection_id
LEFT JOIN cb_sorts AS sorts ON sorts.id = collections.sort_type
LEFT JOIN cb_collections AS collections_enfant ON collections.collection_id = collections_enfant.collection_id_parent
LEFT JOIN cb_collection_tags AS collection_tags ON collections.collection_id = collection_tags.id_collection
LEFT JOIN cb_tags AS tags ON collection_tags.id_tag = tags.id_tag
LEFT JOIN cb_collections_categories AS collections_categories ON collections.collection_id = collections_categories.id_collection
LEFT JOIN cb_categories AS categories ON collections_categories.id_category = categories.category_id WHERE collections.featured = 'yes'
AND collections.type = 'videos'
AND ((collections.active = 'yes' AND collections.broadcast = 'public' AND collections.type = 'videos'))
GROUP BY collections.collection_id
HAVING COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) > 0
[timetook] => 0.00056290626525879
[memBefore] => 1.0563507080078
[memAfter] => 1.0668563842773
[memUsed] => 0.010505676269531
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/collections.class.php(525): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/index.php(90): Collection->getAll()
)
[16] => Array
(
[q] => SELECT video.videoid, video.videokey, video.video_password, video.username, video.userid, video.title, video.file_name, video.file_type, video.file_directory, video.description, video.broadcast, video.location, video.datecreated, video.country, video.allow_embedding, video.allow_comments, video.comment_voting, video.comments_count, video.last_commented, video.featured, video.featured_date, video.allow_rating, video.active, video.favourite_count, video.playlist_count, video.views, video.last_viewed, video.date_added, video.flagged, video.duration, video.status, video.default_thumb, video.embed_code, video.downloads, video.uploader_ip, video.video_files, video.file_server_path, video.video_version, video.subscription_email, video.is_castable, video.bits_color, video.age_restriction, video.default_poster, video.default_backdrop, video.fov, video.convert_percent, video.aspect_ratio, video.default_thumbnail, video.total_rate_up, video.total_rate_down, video.id_tmdb, video.type_tmdb, video.use_backdrop_as_default_thumb, users.username AS user_username, GROUP_CONCAT( DISTINCT(users_video.username) SEPARATOR ',') AS video_users
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_video_users AS video_users ON video_users.videoid = video.videoid LEFT JOIN cb_users AS users_video ON users_video.userid = video_users.userid WHERE video.featured = 'yes' AND ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public'))) GROUP BY video.videoid,video.videokey,video.video_password,video.username,video.userid,video.title,video.file_name,video.file_type,video.file_directory,video.description,video.broadcast,video.location,video.datecreated,video.country,video.allow_embedding,video.allow_comments,video.comment_voting,video.comments_count,video.last_commented,video.featured,video.featured_date,video.allow_rating,video.active,video.favourite_count,video.playlist_count,video.views,video.last_viewed,video.date_added,video.flagged,video.duration,video.status,video.default_thumb,video.embed_code,video.downloads,video.uploader_ip,video.video_files,video.file_server_path,video.video_version,video.subscription_email,video.is_castable,video.bits_color,video.age_restriction,video.default_poster,video.default_backdrop,video.fov,video.convert_percent,video.aspect_ratio,video.default_thumbnail,video.total_rate_up,video.total_rate_down,video.id_tmdb,video.type_tmdb,video.use_backdrop_as_default_thumb,users.username LIMIT 20
[timetook] => 0.00065994262695312
[memBefore] => 1.0668563842773
[memAfter] => 1.0742263793945
[memUsed] => 0.0073699951171875
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(258): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(138): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/video.class.php(613): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/index.php(119): Video->getAll()
)
)