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.003 s)
(num rows        : 92 )
[3] 

SELECT data
  FROM g_sessions
  WHERE id = '365Cnvvknppqm192el3785fh7vguo7'
;
(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_tags
  WHERE id IN (843)
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.008 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 (843)
  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.002 s)
(total SQL time  : 0.003 s)
(total time      : 0.009 s)
(num rows        : 259 )
[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.010 s)
(num rows        : 102 )
[11] 

SELECT SUBDATE(CURRENT_DATE,INTERVAL 30 DAY)
(this query time : 0.000 s)
(total SQL time  : 0.004 s)
(total time      : 0.010 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 (5572,5573,5574,5575,5576,5577,5578,5579,5615,5616,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5423,5421,5422,5419,5420,5417,5418,5415,5488,5485,5486,5141,5142,5139,5140,4237,4236,4239,4238,4241,4243,4233,4232,4231,4242,4245,4244,4234,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206,4199,4197,4196,4184,4195,4194,4193,4192,4191,4202,4201,4200,4185,4186,4187,4183,4189,4188,4190,4096,4094,4095,4103,4104,4003,4004,4002,4000,4001,3999,3998,3997,3995,3996,3993,3994,3991,3992,3990,3989,3988,3987,3986,3985,3983,3984,3981,3982,3979,3980,3977,3978,3976,3974,3975,3973,3923,3972,3971,3970,3969,3968,3967,3966,3965,3964,3963,3962,3961,3960,3959,3958,3957,3956,3955,3954,3953,3952,3951,3950,3949,3948,3947,3946,3944,3945,3942,3943,3940,3941,3938,3939,3936,3937,3935,3934,3933,3932,3931,3930,3929,3928,3927,3926,3925,3924,4037,3898,3901,3900,3899,3907,3906,3905,3904,3903,3902,3910,3909,3908,4082,4081,4080,4079,4077,4076,4075,4073,4072,4070,4068,4065,4063,4062,4061,4060,4058,4056,4053)
    AND tag_id NOT IN (843)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.011 s)
(total SQL time  : 0.015 s)
(total time      : 0.024 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (5572,5573,5574,5575,5576,5577,5578,5579,5615,5616,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5423,5421,5422,5419,5420,5417,5418,5415,5488,5485,5486,5141,5142,5139,5140,4237,4236,4239,4238,4241,4243,4233,4232,4231,4242,4245,4244,4234,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206,4199,4197,4196,4184,4195,4194,4193,4192,4191,4202,4201,4200,4185,4186,4187,4183,4189,4188,4190,4096,4094,4095,4103,4104,4003,4004,4002,4000,4001,3999,3998,3997,3995,3996,3993,3994,3991,3992,3990,3989,3988,3987,3986,3985,3983,3984,3981,3982,3979,3980,3977,3978,3976,3974,3975,3973,3923,3972,3971,3970,3969,3968,3967,3966,3965,3964,3963,3962,3961,3960,3959,3958,3957,3956,3955,3954,3953,3952,3951,3950,3949,3948,3947,3946,3944,3945,3942,3943,3940,3941,3938,3939,3936,3937,3935,3934,3933,3932,3931,3930,3929,3928,3927,3926,3925,3924,4037,3898,3901,3900,3899,3907,3906,3905,3904,3903,3902,3910,3909,3908,4082,4081,4080,4079,4077,4076,4075,4073,4072,4070,4068,4065,4063,4062,4061,4060,4058,4056,4053)
;
(this query time : 0.002 s)
(total SQL time  : 0.016 s)
(total time      : 0.028 s)
(num rows        : 259 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (5572,5573,5574,5575,5576,5577,5578,5579,5615,5616,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5423,5421,5422,5419,5420,5417,5418,5415,5488,5485,5486,5141,5142,5139,5140,4237,4236,4239,4238,4241,4243,4233,4232,4231,4242,4245,4244,4234,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206,4199,4197,4196,4184,4195,4194,4193,4192,4191,4202,4201,4200,4185,4186,4187,4183,4189,4188,4190,4096,4094,4095,4103,4104,4003,4004,4002,4000,4001,3999,3998,3997,3995,3996,3993,3994,3991,3992,3990,3989,3988,3987,3986,3985,3983,3984,3981,3982,3979,3980,3977,3978,3976,3974,3975,3973,3923,3972,3971,3970,3969,3968,3967,3966,3965,3964,3963,3962,3961,3960,3959,3958,3957,3956,3955,3954,3953,3952,3951,3950,3949,3948,3947,3946,3944,3945,3942,3943,3940,3941,3938,3939,3936,3937,3935,3934,3933,3932,3931,3930,3929,3928,3927,3926,3925,3924,4037,3898,3901,3900,3899,3907,3906,3905,3904,3903,3902,3910,3909,3908,4082,4081,4080,4079,4077,4076,4075,4073,4072,4070,4068,4065,4063,4062,4061,4060,4058,4056,4053)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.017 s)
(total time      : 0.050 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,
    '843'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.018 s)
(total time      : 0.052 s)
(affected rows   : 1 )