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.001 s)
(total time      : 0.003 s)
(num rows        : 92 )
[3] 

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

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

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.001 s)
(total time      : 0.005 s)
(num rows        : 1 )
[6] 

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.002 s)
(total time      : 0.005 s)
(num rows        : 1 )
[7] 

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

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

SELECT *
  FROM g_categories
  WHERE id = 150
;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.007 s)
(num rows        : 1 )
[10] 

  SELECT id, name, permalink
    FROM g_categories
    WHERE id IN (107,150)
  ;
(this query time : 0.000 s)
(total SQL time  : 0.003 s)
(total time      : 0.008 s)
(num rows        : 2 )
[9] 

SELECT DISTINCT(image_id)
  FROM g_image_category
    INNER JOIN g_images ON id = image_id
  WHERE
    category_id = 150
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.003 s)
(total time      : 0.008 s)
(num rows        : 94 )
[10] 

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.003 s)
(total time      : 0.009 s)
(num rows        : 102 )
[11] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 30 DAY)
(this query time : 0.000 s)
(total SQL time  : 0.003 s)
(total time      : 0.009 s)
(num rows        : 1 )
[12] 

SELECT t.*, count(*) AS counter
  FROM g_image_tag
    INNER JOIN g_tags t ON tag_id = id
  WHERE image_id IN (4489,4490,4488,4487,4486,4485,4484,4483,4482,4481,4479,4480,4477,4478,4475,4476,4474,4473,4472,4471,4470,4469,4468,4467,4465,4466,4443,4400,4401,4398,4399,4396,4397,4445,4423,4422,4421,4420,4419,4418,4417,4416,4415,4414,4413,4412,4444,4411,4410,4409,4408,4407,4406,4405,4404,4403,4402,4456,4457,4454,4455,4452,4453,4451,4450,4449,4448,4447,4446,4463,4464,4461,4462,4460,4459,4441,4442,4439,4440,4458,4438,4436,4435,4434,4433,4432,4431,4429,4430,4427,4428,4426,4424,4425)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.003 s)
(total SQL time  : 0.006 s)
(total time      : 0.015 s)
(num rows        : 12 )
[13] 

SELECT
    c.*,
    user_representative_picture_id,
    nb_images,
    date_last,
    max_date_last,
    count_images,
    nb_categories,
    count_categories
  FROM g_categories c
    INNER JOIN g_user_cache_categories ucc
    ON id = cat_id
    AND user_id = 2
  WHERE id_uppercat = 150
      
  ORDER BY rank
(this query time : 0.001 s)
(total SQL time  : 0.007 s)
(total time      : 0.018 s)
(num rows        : 1 )
[14] 

SELECT *
  FROM g_images
  WHERE id IN (4491)
;
(this query time : 0.000 s)
(total SQL time  : 0.007 s)
(total time      : 0.018 s)
(num rows        : 1 )

[0.019 s, 14 queries] : end include/category_cats.inc.php

[15] 

SELECT *
  FROM g_images
  WHERE id IN (4489,4490,4488,4487,4486,4485,4484,4483,4482,4481,4479,4480,4477,4478,4475,4476,4474,4473,4472,4471,4470,4469,4468,4467,4465,4466,4443,4400,4401,4398,4399,4396,4397,4445,4423,4422,4421,4420,4419,4418,4417,4416,4415,4414,4413,4412,4444,4411,4410,4409,4408,4407,4406,4405,4404,4403,4402,4456,4457,4454,4455,4452,4453,4451,4450,4449,4448,4447,4446,4463,4464,4461,4462,4460,4459,4441,4442,4439,4440,4458,4438,4436,4435,4434,4433,4432,4431,4429,4430,4427,4428,4426,4424,4425)
;
(this query time : 0.001 s)
(total SQL time  : 0.008 s)
(total time      : 0.020 s)
(num rows        : 94 )

[0.029 s, 15 queries] : end include/category_default.inc.php

[16] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (4489,4490,4488,4487,4486,4485,4484,4483,4482,4481,4479,4480,4477,4478,4475,4476,4474,4473,4472,4471,4470,4469,4468,4467,4465,4466,4443,4400,4401,4398,4399,4396,4397,4445,4423,4422,4421,4420,4419,4418,4417,4416,4415,4414,4413,4412,4444,4411,4410,4409,4408,4407,4406,4405,4404,4403,4402,4456,4457,4454,4455,4452,4453,4451,4450,4449,4448,4447,4446,4463,4464,4461,4462,4460,4459,4441,4442,4439,4440,4458,4438,4436,4435,4434,4433,4432,4431,4429,4430,4427,4428,4426,4424,4425)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.000 s)
(total SQL time  : 0.009 s)
(total time      : 0.030 s)
(num rows        : 1 )
[17] 

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',
    150,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.009 s)
(total time      : 0.032 s)
(affected rows   : 1 )