[1] SELECT @@SESSION.sql_mode (this query time : 0.000 s) (total SQL time : 0.000 s) (total time : 0.020 s) (num rows : 1 )
[2] SET SESSION sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION' (this query time : 0.000 s) (total SQL time : 0.001 s) (total time : 0.020 s)
[3] SELECT param, value FROM piwigo_config ; (this query time : 0.001 s) (total SQL time : 0.001 s) (total time : 0.021 s) (num rows : 106 )
[4] SELECT data FROM piwigo_sessions WHERE id = 'C0A8gkrnn932m42esum32oqla9crkn' ; (this query time : 0.000 s) (total SQL time : 0.002 s) (total time : 0.022 s) (num rows : 0 )
[5] SELECT * FROM piwigo_plugins WHERE state='active' (this query time : 0.000 s) (total SQL time : 0.002 s) (total time : 0.023 s) (num rows : 8 )
[6] SELECT image_id, date_available, NOW() AS dbnow FROM piwigo_lounge JOIN piwigo_images ON image_id = id ORDER BY image_id ASC LIMIT 1 ; (this query time : 0.001 s) (total SQL time : 0.003 s) (total time : 0.030 s) (num rows : 0 )
[7] SELECT id AS id , username AS username , password AS password , mail_address AS email FROM piwigo_users WHERE id = '2' (this query time : 0.000 s) (total SQL time : 0.003 s) (total time : 0.030 s) (num rows : 1 )
[8] SELECT ui.*, uc.*, t.name AS theme_name FROM piwigo_user_infos AS ui LEFT JOIN piwigo_user_cache AS uc ON ui.user_id = uc.user_id LEFT JOIN piwigo_themes AS t ON t.id = ui.theme WHERE ui.user_id = 2 ; (this query time : 0.001 s) (total SQL time : 0.004 s) (total time : 0.031 s) (num rows : 1 )
[9] SELECT * FROM piwigo_user_infos WHERE user_id = 2 ; (this query time : 0.000 s) (total SQL time : 0.004 s) (total time : 0.031 s) (num rows : 1 )
[10] SELECT i.latitude, i.longitude, IFNULL(i.name, '') AS `name`, TRIM(LEADING '.' FROM IF(i.representative_ext IS NULL, CONCAT(LEFT(i.path,CHAR_LENGTH(i.path)-1-CHAR_LENGTH(SUBSTRING_INDEX(i.path, '.', -1 ))), '-sq.', SUBSTRING_INDEX(i.path, '.', -1 )), REPLACE(i.path, TRIM(TRAILING '.' FROM SUBSTRING_INDEX(i.path, '/', -1 )), CONCAT('pwg_representative/', CONCAT( TRIM(TRAILING '.' FROM SUBSTRING_INDEX( SUBSTRING_INDEX(i.path, '/', -1 ) , '.', 1 )), CONCAT('-sq.', i.representative_ext) ) ) ) )) AS `pathurl`, TRIM(TRAILING '/' FROM CONCAT( i.id, '/category/', IFNULL(ic.category_id, '') ) ) AS `imgurl`, IFNULL(i.comment, '') AS `comment`, IFNULL(i.author, '') AS `author`, i.width FROM piwigo_images AS i INNER JOIN (piwigo_image_category AS ic ) ON i.id = ic.image_id WHERE i.latitude IS NOT NULL AND i.longitude IS NOT NULL AND (ic.category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90)) GROUP BY i.id; (this query time : 0.011 s) (total SQL time : 0.015 s) (total time : 0.048 s) (num rows : 630 )
[11] SELECT i.path FROM piwigo_images AS i INNER JOIN (piwigo_image_category AS ic ) ON i.id = ic.image_id WHERE `path` LIKE '%.gpx' AND (ic.category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90)) (this query time : 0.003 s) (total SQL time : 0.018 s) (total time : 0.055 s) (num rows : 71 )
[12] SELECT id, uppercats FROM piwigo_categories WHERE name LIKE "%%" (this query time : 0.001 s) (total SQL time : 0.019 s) (total time : 0.078 s) (num rows : 0 )
[13] SELECT id, name, permalink, nb_images, global_rank, date_last, max_date_last, count_images, count_categories FROM piwigo_categories INNER JOIN piwigo_user_cache_categories ON id = cat_id and user_id = 2 WHERE (id_uppercat is NULL) ; (this query time : 0.001 s) (total SQL time : 0.020 s) (total time : 0.079 s) (num rows : 1 )
[14] SELECT SUBDATE(CURRENT_DATE,INTERVAL 7 DAY) (this query time : 0.000 s) (total SQL time : 0.020 s) (total time : 0.079 s) (num rows : 1 )
[15] SELECT tag_id, COUNT(DISTINCT(it.image_id)) AS counter FROM piwigo_image_category ic INNER JOIN piwigo_image_tag it ON ic.image_id=it.image_id WHERE 1=1 AND (category_id NOT IN (23,25,26,27,28,29,30,31,50,51,52,53,54,55,56,57,58,59,60,61,87,86,90)) GROUP BY tag_id ; (this query time : 0.000 s) (total SQL time : 0.020 s) (total time : 0.080 s) (num rows : 0 )
[16] SELECT SQL_CALC_FOUND_ROWS c.*, user_representative_picture_id, nb_images, date_last, max_date_last, count_images, nb_categories, count_categories FROM piwigo_categories c INNER JOIN piwigo_user_cache_categories ucc ON id = cat_id AND user_id = 2 WHERE count_images > 0 AND id_uppercat is NULL AND name NOT LIKE '%%' -- after conditions ORDER BY `rank` LIMIT 12 OFFSET 0 ; (this query time : 0.001 s) (total SQL time : 0.022 s) (total time : 0.110 s) (num rows : 1 )
[17] SELECT FOUND_ROWS() (this query time : 0.000 s) (total SQL time : 0.022 s) (total time : 0.111 s) (num rows : 1 )
[18] SELECT category_id, MIN(date_creation) AS `from`, MAX(date_creation) AS `to` FROM piwigo_image_category INNER JOIN piwigo_images ON image_id = id WHERE category_id IN (2) GROUP BY category_id ; (this query time : 0.000 s) (total SQL time : 0.022 s) (total time : 0.111 s) (num rows : 0 )
[19] SELECT * FROM piwigo_images WHERE id IN (590) ; (this query time : 0.000 s) (total SQL time : 0.023 s) (total time : 0.111 s) (num rows : 1 )
[0.130 s, 19 queries] : end include/category_cats.inc.php
[20] SELECT id, name FROM piwigo_themes ORDER BY name ASC ; (this query time : 0.001 s) (total SQL time : 0.023 s) (total time : 0.161 s) (num rows : 4 )
[21] UPDATE piwigo_user_infos SET last_visit = NOW(), lastmodified = lastmodified WHERE user_id = 2 (this query time : 0.028 s) (total SQL time : 0.051 s) (total time : 0.235 s) (affected rows : 1 )
[22] INSERT INTO piwigo_history ( date, time, user_id, IP, section, category_id, search_id, image_id, image_type, format_id, auth_key_id, tag_ids ) VALUES ( CURRENT_DATE, CURRENT_TIME, 2, '192.168.1.10', 'categories', NULL, NULL, NULL, NULL, NULL, NULL, NULL ) ; (this query time : 0.014 s) (total SQL time : 0.065 s) (total time : 0.249 s) (affected rows : 1 )