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 = '36C6e32e6gd87kcq2s9lp0hmnmlli7'
;
(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.001 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 = 169
;
(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 (152,169)
  ;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.007 s)
(num rows        : 2 )
[9] 

SELECT DISTINCT(image_id)
  FROM g_image_category
    INNER JOIN g_images ON id = image_id
  WHERE
    category_id = 169
AND (category_id NOT IN (188,201,198,200,182,212) AND level<=0)
   ORDER BY date_creation DESC
;
(this query time : 0.001 s)
(total SQL time  : 0.003 s)
(total time      : 0.008 s)
(num rows        : 366 )
[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 (5152,5151,5150,5149,5148,5147,5146,5159,5158,5157,5156,5155,5154,5153,5161,5160,5163,5162,5175,5174,5173,5172,5171,5170,5169,5168,5167,5166,5165,5164,5178,5177,5176,5181,5180,5179,5192,5191,5190,5189,5188,5187,5186,5185,5184,5183,5213,5212,5210,5208,5207,5206,5205,5202,5201,5199,5198,5197,5217,5196,5216,5195,5215,5194,5214,5193,5226,5225,5224,5223,5222,5221,5220,5219,5218,5229,5231,5230,5244,5243,5242,5241,5240,5239,5238,5237,5236,5235,5234,5233,5232,5245,5247,5246,5249,5248,5250,5253,5252,5251,5258,5257,5256,5255,5254,5261,5260,5259,5318,5319,5320,5321,5322,5323,5313,5314,5315,5316,5317,5304,5305,5306,5307,5308,5309,5310,5311,5312,5302,5303,5228,5227,5346,5347,5348,5349,5350,5351,5352,5353,5354,5345,5343,5344,5338,5339,5340,5341,5342,5331,5355,5356,5361,5362,5363,5357,5358,5359,5360,5364,5365,5366,5367,5368,5369,5370,5372,5373,5375,5374,5371,5377,5376,4830,5711,5884,5710,5883,5709,5882,5708,5881,5707,5880,5706,5879,5705,5878,5704,5877,5703,5718,5702,5717,5701,5716,5700,5715,5699,5714,5713,5712,4785,4786,4787,4788,4789,4782,4783,4784,5698,4742,4744,4743,4746,4745,4748,4747,4749,4735,5330,4579,5326,5030,5029,5028,5027,5026,5025,5033,5032,5031,5016,5015,5014,5013,5012,5011,5010,5009,5024,5023,5021,4770,5019,5018,5022,5008,5004,5006,5005,4996,4998,4997,5000,4999,5002,5007,5003,5001,4989,4993,4992,4991,4990,4995,4994,4547,4548,4546,4544,4822,4824,4545,4462,4457,4307,4308,4527,4304,4305,4306,4526,4354,4819,4267,4268,4269,4270,4271,4272,4260,4261,4262,4263,4264,4265,4266,4273,4274,4275,4276,4277,4278,4279,4280,4284,4281,4283,4282,4285,4558,4554,4551,4552,4553,4549,4237,4238,4239,4240,4215,4204,4205,4216,4217,4218,4206,4219,4207,4220,4208,4221,4209,4210,4211,4212,4213,4203,4214,4195,4184,4196,4197,4199,4200,4201,4202,4191,4192,4193,4194,4188,4183,4185,4249,4248,4250,4555,4036,4556,4821,4027,4025,4029,3759)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.014 s)
(total SQL time  : 0.018 s)
(total time      : 0.026 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 = 169
      
  ORDER BY rank
(this query time : 0.001 s)
(total SQL time  : 0.019 s)
(total time      : 0.037 s)
(num rows        : 5 )
[14] 

SELECT *
  FROM g_images
  WHERE id IN (6052,5995,5941,5730,5460)
;
(this query time : 0.000 s)
(total SQL time  : 0.020 s)
(total time      : 0.037 s)
(num rows        : 5 )

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

[15] 

SELECT *
  FROM g_images
  WHERE id IN (5152,5151,5150,5149,5148,5147,5146,5159,5158,5157,5156,5155,5154,5153,5161,5160,5163,5162,5175,5174,5173,5172,5171,5170,5169,5168,5167,5166,5165,5164,5178,5177,5176,5181,5180,5179,5192,5191,5190,5189,5188,5187,5186,5185,5184,5183,5213,5212,5210,5208,5207,5206,5205,5202,5201,5199,5198,5197,5217,5196,5216,5195,5215,5194,5214,5193,5226,5225,5224,5223,5222,5221,5220,5219,5218,5229,5231,5230,5244,5243,5242,5241,5240,5239,5238,5237,5236,5235,5234,5233,5232,5245,5247,5246,5249,5248,5250,5253,5252,5251,5258,5257,5256,5255,5254,5261,5260,5259,5318,5319,5320,5321,5322,5323,5313,5314,5315,5316,5317,5304,5305,5306,5307,5308,5309,5310,5311,5312,5302,5303,5228,5227,5346,5347,5348,5349,5350,5351,5352,5353,5354,5345,5343,5344,5338,5339,5340,5341,5342,5331,5355,5356,5361,5362,5363,5357,5358,5359,5360,5364,5365,5366,5367,5368,5369,5370,5372,5373,5375,5374,5371,5377,5376,4830,5711,5884,5710,5883,5709,5882,5708,5881,5707,5880,5706,5879,5705,5878,5704,5877,5703,5718,5702,5717,5701,5716,5700,5715,5699,5714,5713,5712,4785,4786,4787,4788,4789,4782,4783,4784,5698,4742,4744,4743,4746,4745,4748,4747,4749,4735,5330,4579,5326,5030,5029,5028,5027,5026,5025,5033,5032,5031,5016,5015,5014,5013,5012,5011,5010,5009,5024,5023,5021,4770,5019,5018,5022,5008,5004,5006,5005,4996,4998,4997,5000,4999,5002,5007,5003,5001,4989,4993,4992,4991,4990,4995,4994,4547,4548,4546,4544,4822,4824,4545,4462,4457,4307,4308,4527,4304,4305,4306,4526,4354,4819,4267,4268,4269,4270,4271,4272,4260,4261,4262,4263,4264,4265,4266,4273,4274,4275,4276,4277,4278,4279,4280,4284,4281,4283,4282,4285,4558,4554,4551,4552,4553,4549,4237,4238,4239,4240,4215,4204,4205,4216,4217,4218,4206,4219,4207,4220,4208,4221,4209,4210,4211,4212,4213,4203,4214,4195,4184,4196,4197,4199,4200,4201,4202,4191,4192,4193,4194,4188,4183,4185,4249,4248,4250,4555,4036,4556,4821,4027,4025,4029,3759)
;
(this query time : 0.003 s)
(total SQL time  : 0.022 s)
(total time      : 0.041 s)
(num rows        : 366 )

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

[16] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (5152,5151,5150,5149,5148,5147,5146,5159,5158,5157,5156,5155,5154,5153,5161,5160,5163,5162,5175,5174,5173,5172,5171,5170,5169,5168,5167,5166,5165,5164,5178,5177,5176,5181,5180,5179,5192,5191,5190,5189,5188,5187,5186,5185,5184,5183,5213,5212,5210,5208,5207,5206,5205,5202,5201,5199,5198,5197,5217,5196,5216,5195,5215,5194,5214,5193,5226,5225,5224,5223,5222,5221,5220,5219,5218,5229,5231,5230,5244,5243,5242,5241,5240,5239,5238,5237,5236,5235,5234,5233,5232,5245,5247,5246,5249,5248,5250,5253,5252,5251,5258,5257,5256,5255,5254,5261,5260,5259,5318,5319,5320,5321,5322,5323,5313,5314,5315,5316,5317,5304,5305,5306,5307,5308,5309,5310,5311,5312,5302,5303,5228,5227,5346,5347,5348,5349,5350,5351,5352,5353,5354,5345,5343,5344,5338,5339,5340,5341,5342,5331,5355,5356,5361,5362,5363,5357,5358,5359,5360,5364,5365,5366,5367,5368,5369,5370,5372,5373,5375,5374,5371,5377,5376,4830,5711,5884,5710,5883,5709,5882,5708,5881,5707,5880,5706,5879,5705,5878,5704,5877,5703,5718,5702,5717,5701,5716,5700,5715,5699,5714,5713,5712,4785,4786,4787,4788,4789,4782,4783,4784,5698,4742,4744,4743,4746,4745,4748,4747,4749,4735,5330,4579,5326,5030,5029,5028,5027,5026,5025,5033,5032,5031,5016,5015,5014,5013,5012,5011,5010,5009,5024,5023,5021,4770,5019,5018,5022,5008,5004,5006,5005,4996,4998,4997,5000,4999,5002,5007,5003,5001,4989,4993,4992,4991,4990,4995,4994,4547,4548,4546,4544,4822,4824,4545,4462,4457,4307,4308,4527,4304,4305,4306,4526,4354,4819,4267,4268,4269,4270,4271,4272,4260,4261,4262,4263,4264,4265,4266,4273,4274,4275,4276,4277,4278,4279,4280,4284,4281,4283,4282,4285,4558,4554,4551,4552,4553,4549,4237,4238,4239,4240,4215,4204,4205,4216,4217,4218,4206,4219,4207,4220,4208,4221,4209,4210,4211,4212,4213,4203,4214,4195,4184,4196,4197,4199,4200,4201,4202,4191,4192,4193,4194,4188,4183,4185,4249,4248,4250,4555,4036,4556,4821,4027,4025,4029,3759)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.023 s)
(total time      : 0.078 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.198.103.13',
    'categories',
    169,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.024 s)
(total time      : 0.082 s)
(affected rows   : 1 )