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 = '36C6vn8elijeb7kuvqujcjobspcp53'
;
(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.001 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_tags
  WHERE id IN (504)
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.007 s)
(num rows        : 1 )
[9] 

SELECT id
  FROM g_images i 
    INNER JOIN g_image_category ic ON id=ic.image_id
    INNER JOIN g_image_tag it ON id=it.image_id
    WHERE tag_id IN (504)
  AND (category_id NOT IN (188,201,198,200,182,212) AND level<=0)
  GROUP BY id
ORDER BY date_creation DESC, file ASC, id ASC
(this query time : 0.003 s)
(total SQL time  : 0.004 s)
(total time      : 0.010 s)
(num rows        : 425 )
[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.004 s)
(total time      : 0.011 s)
(num rows        : 102 )
[11] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 30 DAY)
(this query time : 0.000 s)
(total SQL time  : 0.005 s)
(total time      : 0.011 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 (6066,6067,6064,6065,6063,6061,6055,6056,6053,6054,6059,6060,6032,6045,6044,6113,6112,6122,6114,6119,6120,6118,6105,6106,6104,6098,6099,6026,6029,6030,6031,6020,6021,6022,6024,6012,6010,6011,6000,6001,6002,5998,5990,5991,5992,5993,5996,5997,5988,5989,5984,5985,5986,5987,5935,5936,5937,5930,5931,5928,5929,5923,5915,5847,5848,5849,5850,5851,5852,5853,5854,5736,5737,5738,5739,5740,5741,5744,5745,5746,5747,5748,5735,5761,5762,5763,5764,5766,5767,5768,5785,5786,5796,5799,5800,5801,5803,5804,5805,5806,5815,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5380,5378,5391,5388,5389,5397,5394,5395,5405,5402,5403,5400,5401,5411,5412,5410,5409,5408,5407,5416,5413,5444,5451,5454,5453,5467,5468,5466,5470,5457,5456,5455,5458,5460,5459,5462,5697,5696,5693,5690,5646,5570,5567,5568,5565,5569,5552,5553,5551,5463,5464,5547,5548,5542,5540,5329,5300,5284,5282,5276,5274,5273,5271,5272,5269,5270,5267,5268,5266,5265,5263,5264,5281,5279,5136,5137,5134,5135,5132,5133,5130,5131,5129,5125,5079,5122,5123,5118,5119,5097,5096,5094,5095,5092,5093,4979,4980,4978,5085,5034,4941,4957,4951,4952,4950,4949,4947,4967,4966,4965,4964,4962,4963,4960,4961,4959,5051,5039,5040,5037,5041,5042,4988,4986,4985,4983,4984,5152,5149,5150,5147,5148,5146,5159,5153,5162,5176,5177,5174,5175,5172,5173,5170,5171,5168,5169,5166,5167,5164,5165,5178,5180,5198,5197,5193,5196,5195,5226,5223,5224,5235,5246,5250,5253,5251,5258,5257,5255,5256,5254,5260,5259,5323,5320,5315,5314,5313,5311,5310,5306,5302,5303,5353,5351,5352,5350,5349,5347,5348,5346,5344,5345,5342,5341,5339,5340,5355,5331,5356,5362,5363,5360,5361,5359,5358,5357,5370,5369,5375,5374,5371,5698,4748,4745,4746,4743,4744,4815,4739,4735,5330,4585,4583,4599,4600,4598,4595,4596,4593,4594,4591,4602,4603,4604,5326,5032,5031,5013,5014,5011,5008,5004,5005,4997,4998,4999,5000,4989,4993,4991,4995,4565,4566,4564,4563,4562,4560,4561,4547,4539,4538,4537,4528,4529,4530,4292,4295,4296,4297,4293,4272,4271,4270,4269,4268,4267,4266,4265,4264,4263,4262,4261,4260,4277,4276,4275,4274,4273,4280,4284,4285,4282,4283,4558,4552,4551,4553,4253,4256,4549,4252,4122,4093,4097,4101,4555,4034,4035,4556,4049,4050,4029,4025,4027)
    AND tag_id NOT IN (504)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.017 s)
(total SQL time  : 0.022 s)
(total time      : 0.031 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6066,6067,6064,6065,6063,6061,6055,6056,6053,6054,6059,6060,6032,6045,6044,6113,6112,6122,6114,6119,6120,6118,6105,6106,6104,6098,6099,6026,6029,6030,6031,6020,6021,6022,6024,6012,6010,6011,6000,6001,6002,5998,5990,5991,5992,5993,5996,5997,5988,5989,5984,5985,5986,5987,5935,5936,5937,5930,5931,5928,5929,5923,5915,5847,5848,5849,5850,5851,5852,5853,5854,5736,5737,5738,5739,5740,5741,5744,5745,5746,5747,5748,5735,5761,5762,5763,5764,5766,5767,5768,5785,5786,5796,5799,5800,5801,5803,5804,5805,5806,5815,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5380,5378,5391,5388,5389,5397,5394,5395,5405,5402,5403,5400,5401,5411,5412,5410,5409,5408,5407,5416,5413,5444,5451,5454,5453,5467,5468,5466,5470,5457,5456,5455,5458,5460,5459,5462,5697,5696,5693,5690,5646,5570,5567,5568,5565,5569,5552,5553,5551,5463,5464,5547,5548,5542,5540,5329,5300,5284,5282,5276,5274,5273,5271,5272,5269,5270,5267,5268,5266,5265,5263,5264,5281,5279,5136,5137,5134,5135,5132,5133,5130,5131,5129,5125,5079,5122,5123,5118,5119,5097,5096,5094,5095,5092,5093,4979,4980,4978,5085,5034,4941,4957,4951,4952,4950,4949,4947,4967,4966,4965,4964,4962,4963,4960,4961,4959,5051,5039,5040,5037,5041,5042,4988,4986,4985,4983,4984,5152,5149,5150,5147,5148,5146,5159,5153,5162,5176,5177,5174,5175,5172,5173,5170,5171,5168,5169,5166,5167,5164,5165,5178,5180,5198,5197,5193,5196,5195,5226,5223,5224,5235,5246,5250,5253,5251,5258,5257,5255,5256,5254,5260,5259,5323,5320,5315,5314,5313,5311,5310,5306,5302,5303,5353,5351,5352,5350,5349,5347,5348,5346,5344,5345,5342,5341,5339,5340,5355,5331,5356,5362,5363,5360,5361,5359,5358,5357,5370,5369,5375,5374,5371,5698,4748,4745,4746,4743,4744,4815,4739,4735,5330,4585,4583,4599,4600,4598,4595,4596,4593,4594,4591,4602,4603,4604,5326,5032,5031,5013,5014,5011,5008,5004,5005,4997,4998,4999,5000,4989,4993,4991,4995,4565,4566,4564,4563,4562,4560,4561,4547,4539,4538,4537,4528,4529,4530,4292,4295,4296,4297,4293,4272,4271,4270,4269,4268,4267,4266,4265,4264,4263,4262,4261,4260,4277,4276,4275,4274,4273,4280)
;
(this query time : 0.003 s)
(total SQL time  : 0.024 s)
(total time      : 0.036 s)
(num rows        : 400 )

[0.069 s, 13 queries] : end include/category_default.inc.php

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6066,6067,6064,6065,6063,6061,6055,6056,6053,6054,6059,6060,6032,6045,6044,6113,6112,6122,6114,6119,6120,6118,6105,6106,6104,6098,6099,6026,6029,6030,6031,6020,6021,6022,6024,6012,6010,6011,6000,6001,6002,5998,5990,5991,5992,5993,5996,5997,5988,5989,5984,5985,5986,5987,5935,5936,5937,5930,5931,5928,5929,5923,5915,5847,5848,5849,5850,5851,5852,5853,5854,5736,5737,5738,5739,5740,5741,5744,5745,5746,5747,5748,5735,5761,5762,5763,5764,5766,5767,5768,5785,5786,5796,5799,5800,5801,5803,5804,5805,5806,5815,5820,5821,5822,5823,5824,5825,5826,5827,5828,5829,5380,5378,5391,5388,5389,5397,5394,5395,5405,5402,5403,5400,5401,5411,5412,5410,5409,5408,5407,5416,5413,5444,5451,5454,5453,5467,5468,5466,5470,5457,5456,5455,5458,5460,5459,5462,5697,5696,5693,5690,5646,5570,5567,5568,5565,5569,5552,5553,5551,5463,5464,5547,5548,5542,5540,5329,5300,5284,5282,5276,5274,5273,5271,5272,5269,5270,5267,5268,5266,5265,5263,5264,5281,5279,5136,5137,5134,5135,5132,5133,5130,5131,5129,5125,5079,5122,5123,5118,5119,5097,5096,5094,5095,5092,5093,4979,4980,4978,5085,5034,4941,4957,4951,4952,4950,4949,4947,4967,4966,4965,4964,4962,4963,4960,4961,4959,5051,5039,5040,5037,5041,5042,4988,4986,4985,4983,4984,5152,5149,5150,5147,5148,5146,5159,5153,5162,5176,5177,5174,5175,5172,5173,5170,5171,5168,5169,5166,5167,5164,5165,5178,5180,5198,5197,5193,5196,5195,5226,5223,5224,5235,5246,5250,5253,5251,5258,5257,5255,5256,5254,5260,5259,5323,5320,5315,5314,5313,5311,5310,5306,5302,5303,5353,5351,5352,5350,5349,5347,5348,5346,5344,5345,5342,5341,5339,5340,5355,5331,5356,5362,5363,5360,5361,5359,5358,5357,5370,5369,5375,5374,5371,5698,4748,4745,4746,4743,4744,4815,4739,4735,5330,4585,4583,4599,4600,4598,4595,4596,4593,4594,4591,4602,4603,4604,5326,5032,5031,5013,5014,5011,5008,5004,5005,4997,4998,4999,5000,4989,4993,4991,4995,4565,4566,4564,4563,4562,4560,4561,4547,4539,4538,4537,4528,4529,4530,4292,4295,4296,4297,4293,4272,4271,4270,4269,4268,4267,4266,4265,4264,4263,4262,4261,4260,4277,4276,4275,4274,4273,4280,4284,4285,4282,4283,4558,4552,4551,4553,4253,4256,4549,4252,4122,4093,4097,4101,4555,4034,4035,4556,4049,4050,4029,4025,4027)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.025 s)
(total time      : 0.071 s)
(num rows        : 1 )
[15] 

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',
    'tags',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '504'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.026 s)
(total time      : 0.076 s)
(affected rows   : 1 )