kewl's gallery

[1] 
SELECT @@SESSION.sql_mode
(this query time : 0.000 s)
(total SQL time  : 0.000 s)
(total time      : 0.002 s)
(num rows        : 1 )
[2] 

SELECT param, value
 FROM g_config
 
;
(this query time : 0.000 s)
(total SQL time  : 0.000 s)
(total time      : 0.002 s)
(num rows        : 92 )
[3] 

SELECT data
  FROM g_sessions
  WHERE id = '365C50t8kp3r5dcib2dqg59eobh903'
;
(this query time : 0.000 s)
(total SQL time  : 0.001 s)
(total time      : 0.003 s)
(num rows        : 0 )
[4] 

DELETE
  FROM g_sessions
  WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(expiration) > 3600
;
(this query time : 0.023 s)
(total SQL time  : 0.024 s)
(total time      : 0.026 s)
(affected rows   : 8 )
[5] 

SELECT * FROM g_plugins
  WHERE state='active'
(this query time : 0.000 s)
(total SQL time  : 0.024 s)
(total time      : 0.027 s)
(num rows        : 15 )
[6] 

SELECT id AS id
     , username AS username
     , password AS password
     , mail_address AS email
  FROM g_users
  WHERE id = '2'
(this query time : 0.000 s)
(total SQL time  : 0.025 s)
(total time      : 0.029 s)
(num rows        : 1 )
[7] 

SELECT
    ui.*,
    uc.*,
    t.name AS theme_name
  FROM g_user_infos AS ui
    LEFT JOIN g_user_cache AS uc ON ui.user_id = uc.user_id
    LEFT JOIN g_themes AS t ON t.id = ui.theme
  WHERE ui.user_id = 2
;
(this query time : 0.000 s)
(total SQL time  : 0.025 s)
(total time      : 0.029 s)
(num rows        : 1 )
[8] 

SELECT id, name
  FROM g_languages
  ORDER BY name ASC
;
(this query time : 0.000 s)
(total SQL time  : 0.025 s)
(total time      : 0.029 s)
(num rows        : 69 )
[9] 

SELECT *
  FROM g_user_infos
  WHERE user_id = 2
;
(this query time : 0.000 s)
(total SQL time  : 0.025 s)
(total time      : 0.030 s)
(num rows        : 1 )
[10] 

SELECT *
  FROM g_categories
  WHERE id = 166
;
(this query time : 0.000 s)
(total SQL time  : 0.026 s)
(total time      : 0.032 s)
(num rows        : 1 )
[11] 

  SELECT id, name, permalink
    FROM g_categories
    WHERE id IN (152,166)
  ;
(this query time : 0.000 s)
(total SQL time  : 0.026 s)
(total time      : 0.032 s)
(num rows        : 2 )
[10] 

SELECT DISTINCT(image_id)
  FROM g_image_category
    INNER JOIN g_images ON id = image_id
  WHERE
    category_id = 166
AND (category_id NOT IN (188,201,198,200,182,212) AND level<=0)
  ORDER BY date_creation DESC, file ASC, id ASC
;
(this query time : 0.001 s)
(total SQL time  : 0.026 s)
(total time      : 0.033 s)
(num rows        : 27 )
[11] 

SELECT 
  id, name, permalink, nb_images, global_rank,
  date_last, max_date_last, count_images, count_categories
FROM g_categories INNER JOIN g_user_cache_categories
  ON id = cat_id and user_id = 2
WHERE 
  1 = 1
;
(this query time : 0.000 s)
(total SQL time  : 0.026 s)
(total time      : 0.034 s)
(num rows        : 102 )
[12] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 30 DAY)
(this query time : 0.000 s)
(total SQL time  : 0.026 s)
(total time      : 0.034 s)
(num rows        : 1 )
[13] 

SELECT t.*, count(*) AS counter
  FROM g_image_tag
    INNER JOIN g_tags t ON tag_id = id
  WHERE image_id IN (5523,5524,5522,5521,5520,5519,5518,5517,5516,5515,5514,5512,5513,5511,5114,5111,5060,5059,5076,5074,5332,5334,5335,5333,5019,5337,4896)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.001 s)
(total SQL time  : 0.028 s)
(total time      : 0.038 s)
(num rows        : 12 )
[14] 

SELECT *
  FROM g_images
  WHERE id IN (5523,5524,5522,5521,5520,5519,5518,5517,5516,5515,5514,5512,5513,5511,5114,5111,5060,5059,5076,5074,5332,5334,5335,5333,5019,5337,4896)
;
(this query time : 0.001 s)
(total SQL time  : 0.028 s)
(total time      : 0.041 s)
(num rows        : 27 )

[0.045 s, 14 queries] : end include/category_default.inc.php

[15] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (5523,5524,5522,5521,5520,5519,5518,5517,5516,5515,5514,5512,5513,5511,5114,5111,5060,5059,5076,5074,5332,5334,5335,5333,5019,5337,4896)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.000 s)
(total SQL time  : 0.029 s)
(total time      : 0.046 s)
(num rows        : 1 )
[16] 

INSERT INTO g_history
  (
    date,
    time,
    user_id,
    IP,
    section,
    category_id,
    image_id,
    image_type,
    format_id,
    auth_key_id,
    tag_ids
  )
  VALUES
  (
    CURRENT_DATE,
    CURRENT_TIME,
    2,
    '54.92.164.184',
    'categories',
    166,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.029 s)
(total time      : 0.047 s)
(affected rows   : 1 )
[17] 

SELECT
    COUNT(*)
  FROM g_history
;
(this query time : 0.000 s)
(total SQL time  : 0.030 s)
(total time      : 0.048 s)
(num rows        : 1 )
[18] 

SELECT
    *
  FROM g_history_summary
  WHERE history_id_to IS NOT NULL
  ORDER BY history_id_to DESC
  LIMIT 1
;
(this query time : 0.001 s)
(total SQL time  : 0.031 s)
(total time      : 0.050 s)
(num rows        : 1 )
[19] 

SELECT
    id
  FROM g_history
  ORDER BY id DESC
  LIMIT 1
;
(this query time : 0.000 s)
(total SQL time  : 0.031 s)
(total time      : 0.050 s)
(num rows        : 1 )
[20] 

SELECT
    id
  FROM g_history
  ORDER BY id ASC
  LIMIT 1
;
(this query time : 0.000 s)
(total SQL time  : 0.032 s)
(total time      : 0.050 s)
(num rows        : 1 )
[21] 

DELETE
  FROM g_history
  WHERE id < 5140294
;
(this query time : 0.027 s)
(total SQL time  : 0.059 s)
(total time      : 0.078 s)
(affected rows   : 1021 )