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 = '36C6o8pqhhltd1q3ih4brrn74maje3'
;
(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.004 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.004 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.005 s)
(num rows        : 1 )
[9] 

SELECT *
  FROM g_tags
  WHERE id IN (509)
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.006 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 (509)
  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.008 s)
(num rows        : 193 )
[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.004 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 (6059,6113,6112,6119,6120,6118,5997,5988,5984,5985,5935,5936,5930,5928,5929,5923,5914,5915,5847,5848,5849,5850,5736,5739,5748,5735,5766,5767,5768,5815,5378,5391,5388,5389,5397,5394,5395,5405,5402,5403,5400,5401,5454,5453,5465,5457,5456,5458,5460,5459,5462,5697,5690,5646,5565,5461,5553,5551,5463,5464,5547,5548,5542,5540,5329,5284,5282,5281,5279,5079,5096,5094,4979,4980,4978,5085,5034,4941,4949,4947,4967,5051,5039,5040,5042,4988,4986,4985,4983,4984,5152,5149,5150,5148,5146,5162,5176,5177,5174,5175,5172,5173,5170,5171,5168,5178,5180,5226,5223,5224,5246,5253,5259,5323,5302,5303,5353,5346,5344,5345,5341,5339,5340,5370,5369,5374,5371,5698,4748,4745,4746,4743,4744,4739,4735,5330,4583,4599,4600,4598,4595,4596,4602,4603,4604,5326,5008,5004,5005,4997,4998,5000,4989,4992,4995,4565,4566,4564,4563,4562,4560,4561,4547,4292,4295,4296,4297,4293,4277,4276,4274,4273,4280,4285,4282,4283,4558,4553,4253,4256,4549,4252,4122,4093,4097,4101,4034,4035,4556,4050,4025,4027,3551)
    AND tag_id NOT IN (509)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.000 s)
(total SQL time  : 0.004 s)
(total time      : 0.012 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6059,6113,6112,6119,6120,6118,5997,5988,5984,5985,5935,5936,5930,5928,5929,5923,5914,5915,5847,5848,5849,5850,5736,5739,5748,5735,5766,5767,5768,5815,5378,5391,5388,5389,5397,5394,5395,5405,5402,5403,5400,5401,5454,5453,5465,5457,5456,5458,5460,5459,5462,5697,5690,5646,5565,5461,5553,5551,5463,5464,5547,5548,5542,5540,5329,5284,5282,5281,5279,5079,5096,5094,4979,4980,4978,5085,5034,4941,4949,4947,4967,5051,5039,5040,5042,4988,4986,4985,4983,4984,5152,5149,5150,5148,5146,5162,5176,5177,5174,5175,5172,5173,5170,5171,5168,5178,5180,5226,5223,5224,5246,5253,5259,5323,5302,5303,5353,5346,5344,5345,5341,5339,5340,5370,5369,5374,5371,5698,4748,4745,4746,4743,4744,4739,4735,5330,4583,4599,4600,4598,4595,4596,4602,4603,4604,5326,5008,5004,5005,4997,4998,5000,4989,4992,4995,4565,4566,4564,4563,4562,4560,4561,4547,4292,4295,4296,4297,4293,4277,4276,4274,4273,4280,4285,4282,4283,4558,4553,4253,4256,4549,4252,4122,4093,4097,4101,4034,4035,4556,4050,4025,4027,3551)
;
(this query time : 0.002 s)
(total SQL time  : 0.005 s)
(total time      : 0.015 s)
(num rows        : 193 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6059,6113,6112,6119,6120,6118,5997,5988,5984,5985,5935,5936,5930,5928,5929,5923,5914,5915,5847,5848,5849,5850,5736,5739,5748,5735,5766,5767,5768,5815,5378,5391,5388,5389,5397,5394,5395,5405,5402,5403,5400,5401,5454,5453,5465,5457,5456,5458,5460,5459,5462,5697,5690,5646,5565,5461,5553,5551,5463,5464,5547,5548,5542,5540,5329,5284,5282,5281,5279,5079,5096,5094,4979,4980,4978,5085,5034,4941,4949,4947,4967,5051,5039,5040,5042,4988,4986,4985,4983,4984,5152,5149,5150,5148,5146,5162,5176,5177,5174,5175,5172,5173,5170,5171,5168,5178,5180,5226,5223,5224,5246,5253,5259,5323,5302,5303,5353,5346,5344,5345,5341,5339,5340,5370,5369,5374,5371,5698,4748,4745,4746,4743,4744,4739,4735,5330,4583,4599,4600,4598,4595,4596,4602,4603,4604,5326,5008,5004,5005,4997,4998,5000,4989,4992,4995,4565,4566,4564,4563,4562,4560,4561,4547,4292,4295,4296,4297,4293,4277,4276,4274,4273,4280,4285,4282,4283,4558,4553,4253,4256,4549,4252,4122,4093,4097,4101,4034,4035,4556,4050,4025,4027,3551)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.006 s)
(total time      : 0.032 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,
    '509'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.006 s)
(total time      : 0.035 s)
(affected rows   : 1 )