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 = '365C737btstvrsbvb6us18t187q2k4'
;
(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.001 s)
(total time      : 0.006 s)
(num rows        : 1 )
[9] 

SELECT *
  FROM g_tags
  WHERE id IN (479)
(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 (479)
  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.004 s)
(total SQL time  : 0.005 s)
(total time      : 0.011 s)
(num rows        : 616 )
[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.005 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.006 s)
(total time      : 0.012 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 (6050,6169,6111,6110,6109,6107,6108,6115,6121,6117,6116,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,5952,5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,5980,5981,5982,6025,6018,6019,6009,5999,5983,5941,5932,5933,5934,5925,5926,5927,5940,5938,5922,5924,5939,5917,5918,5919,5920,5921,5916,5837,5838,5839,5840,5830,5831,5832,5833,5834,5835,5836,5841,5842,5843,5844,5845,5846,5749,5750,5751,5752,5753,5754,5755,5719,5720,5721,5722,5723,5724,5727,5728,5729,5730,5731,5732,5733,5734,5756,5757,5758,5759,5760,5765,5783,5784,5795,5797,5798,5802,5807,5808,5811,5809,5810,5816,5814,5817,5379,5386,5387,5385,5383,5390,5396,5392,5393,5406,5404,5398,5399,5414,5441,5442,5474,5473,5471,5469,5566,5563,5561,5562,5564,5571,5559,5560,5558,5555,5554,5556,5557,5324,5325,5550,5549,5546,5545,5544,5543,5541,5539,5538,5537,5286,5287,5285,5283,5277,5275,5280,5080,5078,5121,5120,5138,4937,4938,4936,4935,4933,4934,4932,4931,4943,4944,4942,4939,4940,4948,4945,4946,4976,4977,4975,4974,4973,4972,4971,4970,5035,5056,5057,5054,5055,5053,5036,4968,4969,5052,5050,5049,5047,5048,5045,5046,5038,4981,4982,5044,4987,5144,5151,5160,5161,5157,5154,5163,5181,5179,5191,5192,5189,5190,5184,5225,5221,5222,5219,5220,5218,5230,5231,5229,4927,4928,4925,4926,4923,4924,4922,4921,4919,4920,4918,4917,4916,4915,4914,4913,4912,4911,4910,4909,4908,4907,4906,4905,4904,4903,4902,4901,4900,4899,4898,4897,5237,5245,5247,5249,5248,5252,5322,5312,5227,5228,5354,5343,5338,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,5366,5367,5364,5376,5377,4832,4828,5699,5700,5701,5702,5703,5704,4829,4831,4787,4786,4785,4784,4783,4782,4804,4805,4802,4803,4801,4800,4799,4798,4797,4796,4794,4795,4792,4793,4774,4776,4777,4775,4780,4779,4749,4747,4742,4750,4737,4741,4760,4763,4764,4762,4761,4753,4813,4814,4811,4812,4806,4823,4818,4817,4816,4807,4579,4582,4581,4580,4597,4586,4773,4820,4616,4617,4614,4615,4613,4622,4623,4612,4610,4611,4609,4608,4606,4620,4621,4607,4605,4618,4619,5033,4572,4996,5002,5007,5003,4994,4548,4822,4544,4546,4545,4824,4809,4810,4327,4326,4325,4324,4323,4308,4307,4306,4305,4304,4303,4302,4301,4300,4299,4289,4526,4524,4819,4287,4288,4278,4279,4554,4254,4255,4247,4246,4135,4136,4138,4137,4140,4139,4121,4126,4226,4117,4123,4125,4124,4118,4119,4113,4114,4112,4111,4110,4099,4098,4108,4109,4107,4033,4030,4032,4106,4031,4821,4036,4041,4042,4045,4051,4039,4040,4038,4105,4022,4023,4020,4021,4018,4019,4017,4016,4015,4014,4013,4012,4011,4010,4009,4008,4007,4024,4006,4557,3922,3921,3919,3920,3917,3918,3916,3915,3914,3913,3912,3911,3833,3834,3831,3832,3830,3829,3828,3827,3825,3826,3824,3823,3821,3822,3819,3820,3817,3818,3815,3816,3814,3813,3811,3812,3809,3810,3807,3808,3806,3805,3804,3803,3802,3801,3800,3799,3798,3797,3796,3795,3794,3793,3792,3791,3789,3790,3788,3787,3786,3785,3784,3783,3782,3781,3780,3779,3778,3777,3776,3775,3774,3772,3771,3770,3769,3768,3767,3766,3765,3764,3763,3762,3761,3760,4827,3547,3553,3549,4825,4826)
    AND tag_id NOT IN (479)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.025 s)
(total SQL time  : 0.030 s)
(total time      : 0.040 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6050,6169,6111,6110,6109,6107,6108,6115,6121,6117,6116,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,5952,5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,5980,5981,5982,6025,6018,6019,6009,5999,5983,5941,5932,5933,5934,5925,5926,5927,5940,5938,5922,5924,5939,5917,5918,5919,5920,5921,5916,5837,5838,5839,5840,5830,5831,5832,5833,5834,5835,5836,5841,5842,5843,5844,5845,5846,5749,5750,5751,5752,5753,5754,5755,5719,5720,5721,5722,5723,5724,5727,5728,5729,5730,5731,5732,5733,5734,5756,5757,5758,5759,5760,5765,5783,5784,5795,5797,5798,5802,5807,5808,5811,5809,5810,5816,5814,5817,5379,5386,5387,5385,5383,5390,5396,5392,5393,5406,5404,5398,5399,5414,5441,5442,5474,5473,5471,5469,5566,5563,5561,5562,5564,5571,5559,5560,5558,5555,5554,5556,5557,5324,5325,5550,5549,5546,5545,5544,5543,5541,5539,5538,5537,5286,5287,5285,5283,5277,5275,5280,5080,5078,5121,5120,5138,4937,4938,4936,4935,4933,4934,4932,4931,4943,4944,4942,4939,4940,4948,4945,4946,4976,4977,4975,4974,4973,4972,4971,4970,5035,5056,5057,5054,5055,5053,5036,4968,4969,5052,5050,5049,5047,5048,5045,5046,5038,4981,4982,5044,4987,5144,5151,5160,5161,5157,5154,5163,5181,5179,5191,5192,5189,5190,5184,5225,5221,5222,5219,5220,5218,5230,5231,5229,4927,4928,4925,4926,4923,4924,4922,4921,4919,4920,4918,4917,4916,4915,4914,4913,4912,4911,4910,4909,4908,4907,4906,4905,4904,4903,4902,4901,4900,4899,4898,4897,5237,5245,5247,5249,5248,5252,5322,5312,5227,5228,5354,5343,5338,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,5366,5367,5364,5376,5377,4832,4828,5699,5700,5701,5702,5703,5704,4829,4831,4787,4786,4785,4784,4783,4782,4804,4805,4802,4803,4801,4800,4799,4798,4797,4796,4794,4795,4792,4793,4774,4776,4777,4775,4780,4779,4749,4747,4742,4750,4737,4741,4760,4763,4764,4762,4761,4753,4813,4814,4811,4812,4806,4823,4818,4817,4816,4807,4579,4582,4581,4580,4597,4586)
;
(this query time : 0.003 s)
(total SQL time  : 0.033 s)
(total time      : 0.045 s)
(num rows        : 400 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6050,6169,6111,6110,6109,6107,6108,6115,6121,6117,6116,5942,5943,5944,5945,5946,5947,5948,5949,5950,5951,5952,5953,5954,5955,5956,5957,5958,5959,5960,5961,5962,5963,5964,5965,5966,5967,5968,5969,5970,5971,5972,5973,5974,5975,5976,5977,5978,5979,5980,5981,5982,6025,6018,6019,6009,5999,5983,5941,5932,5933,5934,5925,5926,5927,5940,5938,5922,5924,5939,5917,5918,5919,5920,5921,5916,5837,5838,5839,5840,5830,5831,5832,5833,5834,5835,5836,5841,5842,5843,5844,5845,5846,5749,5750,5751,5752,5753,5754,5755,5719,5720,5721,5722,5723,5724,5727,5728,5729,5730,5731,5732,5733,5734,5756,5757,5758,5759,5760,5765,5783,5784,5795,5797,5798,5802,5807,5808,5811,5809,5810,5816,5814,5817,5379,5386,5387,5385,5383,5390,5396,5392,5393,5406,5404,5398,5399,5414,5441,5442,5474,5473,5471,5469,5566,5563,5561,5562,5564,5571,5559,5560,5558,5555,5554,5556,5557,5324,5325,5550,5549,5546,5545,5544,5543,5541,5539,5538,5537,5286,5287,5285,5283,5277,5275,5280,5080,5078,5121,5120,5138,4937,4938,4936,4935,4933,4934,4932,4931,4943,4944,4942,4939,4940,4948,4945,4946,4976,4977,4975,4974,4973,4972,4971,4970,5035,5056,5057,5054,5055,5053,5036,4968,4969,5052,5050,5049,5047,5048,5045,5046,5038,4981,4982,5044,4987,5144,5151,5160,5161,5157,5154,5163,5181,5179,5191,5192,5189,5190,5184,5225,5221,5222,5219,5220,5218,5230,5231,5229,4927,4928,4925,4926,4923,4924,4922,4921,4919,4920,4918,4917,4916,4915,4914,4913,4912,4911,4910,4909,4908,4907,4906,4905,4904,4903,4902,4901,4900,4899,4898,4897,5237,5245,5247,5249,5248,5252,5322,5312,5227,5228,5354,5343,5338,4834,4835,4836,4837,4838,4839,4840,4841,4842,4843,4844,4845,4846,4847,4848,4849,4850,4851,4852,4853,4854,4855,4856,4857,4858,4859,4860,5366,5367,5364,5376,5377,4832,4828,5699,5700,5701,5702,5703,5704,4829,4831,4787,4786,4785,4784,4783,4782,4804,4805,4802,4803,4801,4800,4799,4798,4797,4796,4794,4795,4792,4793,4774,4776,4777,4775,4780,4779,4749,4747,4742,4750,4737,4741,4760,4763,4764,4762,4761,4753,4813,4814,4811,4812,4806,4823,4818,4817,4816,4807,4579,4582,4581,4580,4597,4586,4773,4820,4616,4617,4614,4615,4613,4622,4623,4612,4610,4611,4609,4608,4606,4620,4621,4607,4605,4618,4619,5033,4572,4996,5002,5007,5003,4994,4548,4822,4544,4546,4545,4824,4809,4810,4327,4326,4325,4324,4323,4308,4307,4306,4305,4304,4303,4302,4301,4300,4299,4289,4526,4524,4819,4287,4288,4278,4279,4554,4254,4255,4247,4246,4135,4136,4138,4137,4140,4139,4121,4126,4226,4117,4123,4125,4124,4118,4119,4113,4114,4112,4111,4110,4099,4098,4108,4109,4107,4033,4030,4032,4106,4031,4821,4036,4041,4042,4045,4051,4039,4040,4038,4105,4022,4023,4020,4021,4018,4019,4017,4016,4015,4014,4013,4012,4011,4010,4009,4008,4007,4024,4006,4557,3922,3921,3919,3920,3917,3918,3916,3915,3914,3913,3912,3911,3833,3834,3831,3832,3830,3829,3828,3827,3825,3826,3824,3823,3821,3822,3819,3820,3817,3818,3815,3816,3814,3813,3811,3812,3809,3810,3807,3808,3806,3805,3804,3803,3802,3801,3800,3799,3798,3797,3796,3795,3794,3793,3792,3791,3789,3790,3788,3787,3786,3785,3784,3783,3782,3781,3780,3779,3778,3777,3776,3775,3774,3772,3771,3770,3769,3768,3767,3766,3765,3764,3763,3762,3761,3760,4827,3547,3553,3549,4825,4826)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.035 s)
(total time      : 0.083 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.92.164.184',
    'tags',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '479'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.035 s)
(total time      : 0.087 s)
(affected rows   : 1 )