Select Queries (21)
Array
(
[0] => Array
(
[q] => SELECT * FROM cb_config
[timetook] => 0.0019049644470215
[memBefore] => 0.51591491699219
[memAfter] => 0.55817413330078
[memUsed] => 0.042259216308594
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/functions_db.php(10): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/my_queries.class.php(32): db_select()
#5 /var/www/html/clipbucket-v5/upload/includes/common.php(102): myquery->Get_Website_Details()
#6 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#7 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[1] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 0.0003960132598877
[memBefore] => 0.55817413330078
[memAfter] => 0.80599975585938
[memUsed] => 0.24782562255859
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(317): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(73): Language->getDefaultLanguage()
#5 /var/www/html/clipbucket-v5/upload/includes/common.php(152): Language->init()
#6 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#7 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[2] => 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 = 1 ORDER BY CASE WHEN LT.translation IS NULL THEN concat('aaaaaaaaaaaaaaaaaaaa',language_key) ELSE LK.language_key END
[timetook] => 0.0055389404296875
[memBefore] => 0.80599975585938
[memAfter] => 1.5933990478516
[memUsed] => 0.78739929199219
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(154): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(215): Language->getAllTranslations()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(82): Language->loadTranslations()
#6 /var/www/html/clipbucket-v5/upload/includes/common.php(152): Language->init()
#7 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#8 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[3] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session ='qnpodjia1njp45v724q7e5efoh'
[timetook] => 0.00098490715026855
[memBefore] => 1.5933990478516
[memAfter] => 1.0551986694336
[memUsed] => -0.53820037841797
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/session.class.php(99): Clipbucket_db->select()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(5200): Session->get_sessions()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(931): userquery->get_sessions()
#7 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#8 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#9 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[4] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session_string='guest' AND session ='qnpodjia1njp45v724q7e5efoh'
[timetook] => 0.00059199333190918
[memBefore] => 1.043701171875
[memAfter] => 1.060173034668
[memUsed] => 0.016471862792969
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/session.class.php(88): Clipbucket_db->select()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/session.class.php(44): Session->get_user_session()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(5207): Session->add_session()
#7 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(931): userquery->get_sessions()
#8 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#9 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#10 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[5] => Array
(
[q] => SELECT version.id, version.version, version.revision FROM cb_version AS version
[timetook] => 0.00061511993408203
[memBefore] => 1.060173034668
[memAfter] => 1.0465698242188
[memUsed] => -0.013603210449219
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/update.class.php(60): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/update.class.php(770): Update->getDBVersion()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/user_level.class.php(39): Update->IsCurrentDBVersionIsHigherOrEqualTo()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(969): UserLevel->getPermissions()
#7 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#8 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#9 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[6] => 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.0012941360473633
[memBefore] => 1.0465698242188
[memAfter] => 1.0704879760742
[memUsed] => 0.023918151855469
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/user_level.class.php(139): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/user_level.class.php(40): UserLevel->getAllPermissions()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(969): UserLevel->getPermissions()
#6 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#7 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#8 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[7] => Array
(
[q] => SELECT * FROM cb_plugins WHERE plugin_active='yes'
[timetook] => 0.00078415870666504
[memBefore] => 1.0704879760742
[memAfter] => 1.2491683959961
[memUsed] => 0.17868041992188
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/plugin.class.php(216): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/plugins.php(3): CBPlugin->getInstalledPlugins()
#5 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(21): require_once()
#6 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[8] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 0.00049686431884766
[memBefore] => 1.2491683959961
[memAfter] => 1.2802047729492
[memUsed] => 0.031036376953125
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(317): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/functions.php(1170): Language->getDefaultLanguage()
#5 /var/www/html/clipbucket-v5/upload/player/CB_video_js/cb_video_js.php(24): get_current_language()
#6 /var/www/html/clipbucket-v5/upload/player/CB_video_js/cb_video_js.php(126): CB_video_js->load_dependancies()
#7 /var/www/html/clipbucket-v5/upload/player/CB_video_js/cb_video_js.php(131): CB_video_js->__construct()
#8 /var/www/html/clipbucket-v5/upload/includes/plugins.php(35): include_once()
#9 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(21): require_once()
#10 /var/www/html/clipbucket-v5/upload/watch_video.php(4): require()
)
[9] => Array
(
[q] => SELECT * FROM cb_tags_type WHERE name IN ('video','actors','producer','executive_producer','director','crew','genre')
[timetook] => 0.00056195259094238
[memBefore] => 1.2802047729492
[memAfter] => 1.2999114990234
[memUsed] => 0.019706726074219
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/tags.class.php(329): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/tags.class.php(337): Tags->getTagTypes()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(425): Tags->getVideoTypes()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(208): Video->getAll()
#7 /var/www/html/clipbucket-v5/upload/watch_video.php(24): Video->getOne()
)
[10] => Array
(
[q] => SELECT video.videoid, video.videokey, video.video_password, video.video_users, 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.rating, video.rated_by, video.voter_ids, 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.thumbs_version, video.re_conv_status, 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.remote_play_url, users.username AS user_username, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 6 THEN tags.name END) SEPARATOR ',') AS tags_actors, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 10 THEN tags.name END) SEPARATOR ',') AS tags_crew, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 9 THEN tags.name END) SEPARATOR ',') AS tags_director, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 8 THEN tags.name END) SEPARATOR ',') AS tags_executive_producer, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 11 THEN tags.name END) SEPARATOR ',') AS tags_genre, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 7 THEN tags.name END) SEPARATOR ',') AS tags_producer, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 1 THEN tags.name END) SEPARATOR ',') AS tags_video, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category, GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category_names, CONCAT('[', GROUP_CONCAT(DISTINCT JSON_OBJECT('id', categories.category_id, 'name', categories.category_name)),']') AS category_list, user_profile.disabled_channel
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_video_tags AS video_tags ON video.videoid = video_tags.id_video LEFT JOIN cb_tags AS tags ON video_tags.id_tag = tags.id_tag LEFT JOIN cb_videos_categories AS videos_categories ON video.videoid = videos_categories.id_video LEFT JOIN cb_categories AS categories ON videos_categories.id_category = categories.category_id LEFT JOIN cb_user_profile AS user_profile ON user_profile.userid = users.userid WHERE video.videokey = '19XGO573SK6X' 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 = '')))) GROUP BY video.videoid,video.videokey,video.video_password,video.video_users,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.rating,video.rated_by,video.voter_ids,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.thumbs_version,video.re_conv_status,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.remote_play_url,users.username,video.videoid,video.videoid,user_profile.disabled_channel
[timetook] => 0.12154197692871
[memBefore] => 1.2999114990234
[memAfter] => 1.3442459106445
[memUsed] => 0.044334411621094
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(516): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(208): Video->getAll()
#5 /var/www/html/clipbucket-v5/upload/watch_video.php(24): Video->getOne()
)
[11] => Array
(
[q] => SELECT * FROM cb_tags_type WHERE name IN ('video','actors','producer','executive_producer','director','crew','genre')
[timetook] => 0.00063395500183105
[memBefore] => 1.3442459106445
[memAfter] => 1.315559387207
[memUsed] => -0.0286865234375
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/tags.class.php(329): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/tags.class.php(337): Tags->getTagTypes()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(425): Tags->getVideoTypes()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(208): Video->getAll()
#7 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(640): Video->getOne()
#8 /var/www/html/clipbucket-v5/upload/includes/functions_video.php(92): Video->isCurrentUserRestricted()
#9 /var/www/html/clipbucket-v5/upload/watch_video.php(25): video_playable()
)
[12] => Array
(
[q] => SELECT video.videoid, video.videokey, video.video_password, video.video_users, 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.rating, video.rated_by, video.voter_ids, 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.thumbs_version, video.re_conv_status, 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.remote_play_url, users.username AS user_username, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 6 THEN tags.name END) SEPARATOR ',') AS tags_actors, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 10 THEN tags.name END) SEPARATOR ',') AS tags_crew, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 9 THEN tags.name END) SEPARATOR ',') AS tags_director, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 8 THEN tags.name END) SEPARATOR ',') AS tags_executive_producer, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 11 THEN tags.name END) SEPARATOR ',') AS tags_genre, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 7 THEN tags.name END) SEPARATOR ',') AS tags_producer, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 1 THEN tags.name END) SEPARATOR ',') AS tags_video, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category, GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category_names, CONCAT('[', GROUP_CONCAT(DISTINCT JSON_OBJECT('id', categories.category_id, 'name', categories.category_name)),']') AS category_list, user_profile.disabled_channel
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_video_tags AS video_tags ON video.videoid = video_tags.id_video LEFT JOIN cb_tags AS tags ON video_tags.id_tag = tags.id_tag LEFT JOIN cb_videos_categories AS videos_categories ON video.videoid = videos_categories.id_video LEFT JOIN cb_categories AS categories ON videos_categories.id_category = categories.category_id LEFT JOIN cb_user_profile AS user_profile ON user_profile.userid = users.userid WHERE video.videoid = '7032' 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 = '')))) GROUP BY video.videoid,video.videokey,video.video_password,video.video_users,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.rating,video.rated_by,video.voter_ids,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.thumbs_version,video.re_conv_status,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.remote_play_url,users.username,video.videoid,video.videoid,user_profile.disabled_channel
[timetook] => 0.0038831233978271
[memBefore] => 1.315559387207
[memAfter] => 1.3600158691406
[memUsed] => 0.044456481933594
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(516): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(208): Video->getAll()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(640): Video->getOne()
#6 /var/www/html/clipbucket-v5/upload/includes/functions_video.php(92): Video->isCurrentUserRestricted()
#7 /var/www/html/clipbucket-v5/upload/watch_video.php(25): video_playable()
)
[13] => 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.rating
, collections.rated_by
, collections.voters
, collections.active
, collections.public_upload
, collections.type
, collections.collection_id_parent
, collections.thumb_objectid
, collections.sort_type
, 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
, 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.type = 'videos'
AND collections.collection_id_parent IS NULL
AND (collections.active = 'yes' AND collections.broadcast = 'public')
GROUP BY collections.collection_id
[timetook] => 0.0062360763549805
[memBefore] => 1.3600158691406
[memAfter] => 1.3360748291016
[memUsed] => -0.023941040039062
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/collections.class.php(453): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/collections.class.php(812): Collection->getAll()
#5 /var/www/html/clipbucket-v5/upload/watch_video.php(59): Collection->getAllIndent()
)
[14] => Array
(
[q] => SELECT video.videoid, video.videokey, video.video_password, video.video_users, 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.rating, video.rated_by, video.voter_ids, 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.thumbs_version, video.re_conv_status, 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.remote_play_url, users.username AS user_username
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid WHERE video.status = 'Successful' AND MATCH(video.title) AGAINST ('Get Out NOW- Italy is about EXPLODE and millions will die- Why are they ignoring it Redacted' IN NATURAL LANGUAGE MODE) OR LOWER(video.title) LIKE '%Get Out NOW- Italy is about EXPLODE and millions will die- Why are they ignoring it Redacted%' 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.video_users,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.rating,video.rated_by,video.voter_ids,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.thumbs_version,video.re_conv_status,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.remote_play_url,users.username ORDER BY RAND() LIMIT 12
[timetook] => 0.23736906051636
[memBefore] => 1.3360748291016
[memAfter] => 1.3726577758789
[memUsed] => 0.036582946777344
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(516): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/watch_video.php(66): Video->getAll()
)
[15] => Array
(
[q] => SELECT * FROM cb_tags_type WHERE name IN ('video','actors','producer','executive_producer','director','crew','genre')
[timetook] => 0.00069499015808105
[memBefore] => 1.3726577758789
[memAfter] => 1.3721389770508
[memUsed] => -0.000518798828125
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/tags.class.php(329): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/tags.class.php(337): Tags->getTagTypes()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(1280): Tags->getVideoTypes()
#6 /var/www/html/clipbucket-v5/upload/includes/functions_video.php(563): CBvideo->get_video()
#7 /var/www/html/clipbucket-v5/upload/includes/functions.php(1550): get_video_details()
#8 /var/www/html/clipbucket-v5/upload/includes/functions_video.php(932): increment_views_new()
#9 /var/www/html/clipbucket-v5/upload/watch_video.php(87): call_watch_video_function()
)
[16] => Array
(
[q] => SELECT video.videoid, video.videokey, video.video_password, video.video_users, 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.rating, video.rated_by, video.voter_ids, 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.thumbs_version, video.re_conv_status, video.subscription_email, video.is_castable, video.bits_color, video.age_restriction, video.fov, video.convert_percent, video.aspect_ratio, video.remote_play_url, users.userid, users.username, users.email, users.avatar, users.sex, users.avatar_url, users.dob, users.level, users.usr_status, users.user_session_key, users.featured, users.ban_status, users.total_photos, users.profile_hits, users.total_videos, users.subscribers, users.total_subscriptions , GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 6 THEN tags.name ELSE '' END) SEPARATOR ',') AS tags_actors, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 10 THEN tags.name ELSE '' END) SEPARATOR ',') AS tags_crew, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 9 THEN tags.name ELSE '' END) SEPARATOR ',') AS tags_director, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 8 THEN tags.name ELSE '' END) SEPARATOR ',') AS tags_executive_producer, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 11 THEN tags.name ELSE '' END) SEPARATOR ',') AS tags_genre, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 7 THEN tags.name ELSE '' END) SEPARATOR ',') AS tags_producer, GROUP_CONCAT( DISTINCT(CASE WHEN tags.id_tag_type = 1 THEN tags.name ELSE '' END) SEPARATOR ',') AS tags_video , GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category FROM cb_video AS video LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_video_tags AS video_tags ON video.videoid = video_tags.id_video
LEFT JOIN cb_tags AS tags ON video_tags.id_tag = tags.id_tag LEFT JOIN cb_videos_categories AS videos_categories ON video.videoid = videos_categories.id_video LEFT JOIN cb_categories AS categories ON videos_categories.id_category = categories.category_id WHERE video.videokey = '19XGO573SK6X' GROUP BY video.videoid , video.videoid LIMIT 1
[timetook] => 0.035932779312134
[memBefore] => 1.3721389770508
[memAfter] => 1.4099884033203
[memUsed] => 0.037849426269531
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/functions_db.php(106): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(1313): select()
#5 /var/www/html/clipbucket-v5/upload/includes/functions_video.php(563): CBvideo->get_video()
#6 /var/www/html/clipbucket-v5/upload/includes/functions.php(1550): get_video_details()
#7 /var/www/html/clipbucket-v5/upload/includes/functions_video.php(932): increment_views_new()
#8 /var/www/html/clipbucket-v5/upload/watch_video.php(87): call_watch_video_function()
)
[17] => Array
(
[q] => SELECT userid FROM cb_users WHERE username='anonymous' AND email='anonymous@website' LIMIT 1
[timetook] => 0.001121997833252
[memBefore] => 1.3798217773438
[memAfter] => 1.3873138427734
[memUsed] => 0.0074920654296875
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(4278): Clipbucket_db->select()
#5 /var/www/html/clipbucket-v5/upload/watch_video.php(92): userquery->get_anonymous_user()
)
[18] => Array
(
[q] => SELECT * FROM cb_sorts WHERE is_default = TRUE AND type = 'videos'
[timetook] => 0.00074195861816406
[memBefore] => 1.3873138427734
[memAfter] => 1.3914642333984
[memUsed] => 0.004150390625
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/sort_type.class.php(37): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/functions.php(2051): SortType->getDefaultByType()
#5 /var/www/html/clipbucket-v5/upload/includes/functions.php(1241): sort_link()
#6 /var/www/html/clipbucket-v5/upload/watch_video.php(137): cblink()
)
[19] => Array
(
[q] => SELECT * FROM cb_sorts WHERE is_default = TRUE AND type = 'videos'
[timetook] => 0.0006871223449707
[memBefore] => 1.3914642333984
[memAfter] => 1.3929901123047
[memUsed] => 0.00152587890625
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/sort_type.class.php(37): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/functions.php(2051): SortType->getDefaultByType()
#5 /var/www/html/clipbucket-v5/upload/includes/functions.php(1241): sort_link()
#6 /var/www/html/clipbucket-v5/upload/watch_video.php(137): cblink()
)
[20] => Array
(
[q] => SELECT * FROM cb_sorts WHERE is_default = TRUE AND type = 'videos'
[timetook] => 0.00076603889465332
[memBefore] => 1.3929901123047
[memAfter] => 1.394157409668
[memUsed] => 0.0011672973632812
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/sort_type.class.php(37): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/functions.php(2051): SortType->getDefaultByType()
#5 /var/www/html/clipbucket-v5/upload/includes/functions.php(1241): sort_link()
#6 /var/www/html/clipbucket-v5/upload/watch_video.php(137): cblink()
)
)
Comment (0)