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 = '36C68qt2oi1pdnq372av8t3nkr4803'
;
(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.006 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.006 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 (517)
(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 (517)
  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.001 s)
(total SQL time  : 0.003 s)
(total time      : 0.009 s)
(num rows        : 125 )
[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.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 (6069,5930,5915,5720,5722,5727,5756,5757,5758,5759,5784,5790,5791,5578,5579,5615,5616,5580,5581,5582,5583,5587,5590,5591,5817,5387,5385,5383,5384,5397,5394,5694,5680,5685,5571,5552,5498,5497,5282,5278,5275,5273,5271,5130,5073,5070,5071,5068,5062,5475,4958,4955,4974,5039,5041,5180,5181,5179,5185,5208,5222,5353,5351,5344,5362,5370,5369,5366,5368,5367,5364,5365,5871,4784,4797,4796,4794,4795,4774,4776,4777,4775,4780,4779,4781,4747,4743,4744,4738,4769,4768,4767,4765,4766,4756,4754,4755,4752,4751,4807,4585,4599,4600,4598,4595,4596,4601,4773,5326,4650,4725,4718,4712,4704,4686,4682,4681,4680,4993,4223,4222,3623,3550,4808,4825)
    AND tag_id NOT IN (517)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.005 s)
(total SQL time  : 0.009 s)
(total time      : 0.018 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6069,5930,5915,5720,5722,5727,5756,5757,5758,5759,5784,5790,5791,5578,5579,5615,5616,5580,5581,5582,5583,5587,5590,5591,5817,5387,5385,5383,5384,5397,5394,5694,5680,5685,5571,5552,5498,5497,5282,5278,5275,5273,5271,5130,5073,5070,5071,5068,5062,5475,4958,4955,4974,5039,5041,5180,5181,5179,5185,5208,5222,5353,5351,5344,5362,5370,5369,5366,5368,5367,5364,5365,5871,4784,4797,4796,4794,4795,4774,4776,4777,4775,4780,4779,4781,4747,4743,4744,4738,4769,4768,4767,4765,4766,4756,4754,4755,4752,4751,4807,4585,4599,4600,4598,4595,4596,4601,4773,5326,4650,4725,4718,4712,4704,4686,4682,4681,4680,4993,4223,4222,3623,3550,4808,4825)
;
(this query time : 0.001 s)
(total SQL time  : 0.010 s)
(total time      : 0.021 s)
(num rows        : 125 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6069,5930,5915,5720,5722,5727,5756,5757,5758,5759,5784,5790,5791,5578,5579,5615,5616,5580,5581,5582,5583,5587,5590,5591,5817,5387,5385,5383,5384,5397,5394,5694,5680,5685,5571,5552,5498,5497,5282,5278,5275,5273,5271,5130,5073,5070,5071,5068,5062,5475,4958,4955,4974,5039,5041,5180,5181,5179,5185,5208,5222,5353,5351,5344,5362,5370,5369,5366,5368,5367,5364,5365,5871,4784,4797,4796,4794,4795,4774,4776,4777,4775,4780,4779,4781,4747,4743,4744,4738,4769,4768,4767,4765,4766,4756,4754,4755,4752,4751,4807,4585,4599,4600,4598,4595,4596,4601,4773,5326,4650,4725,4718,4712,4704,4686,4682,4681,4680,4993,4223,4222,3623,3550,4808,4825)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.010 s)
(total time      : 0.033 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,
    '517'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.011 s)
(total time      : 0.035 s)
(affected rows   : 1 )