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 = '365C1snmivr247v8ris4t963o0em80'
;
(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.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 (41)
(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 (41)
  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        : 226 )
[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 (6062,6057,6037,6049,6051,6218,6214,6212,6210,6207,6208,6206,6201,6200,6198,6195,6193,6189,6190,6187,6188,6185,6181,6182,6179,6177,6175,6174,6173,6172,6168,6165,6164,6161,6151,6147,6148,6146,6140,6138,6135,6136,6103,6102,6101,6100,6096,6095,6092,6093,6091,6089,6086,6085,6084,6083,6082,6078,6077,6075,6076,6074,6072,6071,6070,6028,6012,6015,6011,6005,5922,5838,5737,5740,5746,5719,5721,5723,5724,5765,5785,5787,5577,5584,5588,5589,5591,5613,5819,5821,5822,5826,5827,5829,5422,5415,5428,5427,5426,5439,5433,5434,5432,5449,5447,5693,5647,5648,5652,5653,5654,5656,5657,5659,5662,5664,5665,5667,5668,5670,5677,5679,5680,5681,5682,5571,5508,5535,5533,5532,5525,5524,5516,5514,5513,5489,5487,5486,5298,5294,5292,5301,5278,5276,5274,5270,5268,5078,5115,5065,5076,5476,4954,4950,5046,5043,5153,5157,5155,5174,5182,5189,5187,5216,5217,5215,5205,5202,5220,5231,5235,5233,5244,5242,5241,5240,5239,5247,5256,5260,5316,5305,5349,5343,5341,5895,5863,5870,5332,5715,5881,4782,4805,4802,4795,4792,4791,4777,4760,4592,4676,4637,4625,4704,4684,4682,4680,5015,5016,4536,4308,4243,4232,4213,4212,4206,4185,4029,4004,3993,3748,3908,5337,10,4070,4778)
    AND tag_id NOT IN (41)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.009 s)
(total SQL time  : 0.013 s)
(total time      : 0.022 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6062,6057,6037,6049,6051,6218,6214,6212,6210,6207,6208,6206,6201,6200,6198,6195,6193,6189,6190,6187,6188,6185,6181,6182,6179,6177,6175,6174,6173,6172,6168,6165,6164,6161,6151,6147,6148,6146,6140,6138,6135,6136,6103,6102,6101,6100,6096,6095,6092,6093,6091,6089,6086,6085,6084,6083,6082,6078,6077,6075,6076,6074,6072,6071,6070,6028,6012,6015,6011,6005,5922,5838,5737,5740,5746,5719,5721,5723,5724,5765,5785,5787,5577,5584,5588,5589,5591,5613,5819,5821,5822,5826,5827,5829,5422,5415,5428,5427,5426,5439,5433,5434,5432,5449,5447,5693,5647,5648,5652,5653,5654,5656,5657,5659,5662,5664,5665,5667,5668,5670,5677,5679,5680,5681,5682,5571,5508,5535,5533,5532,5525,5524,5516,5514,5513,5489,5487,5486,5298,5294,5292,5301,5278,5276,5274,5270,5268,5078,5115,5065,5076,5476,4954,4950,5046,5043,5153,5157,5155,5174,5182,5189,5187,5216,5217,5215,5205,5202,5220,5231,5235,5233,5244,5242,5241,5240,5239,5247,5256,5260,5316,5305,5349,5343,5341,5895,5863,5870,5332,5715,5881,4782,4805,4802,4795,4792,4791,4777,4760,4592,4676,4637,4625,4704,4684,4682,4680,5015,5016,4536,4308,4243,4232,4213,4212,4206,4185,4029,4004,3993,3748,3908,5337,10,4070,4778)
;
(this query time : 0.002 s)
(total SQL time  : 0.015 s)
(total time      : 0.027 s)
(num rows        : 226 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6062,6057,6037,6049,6051,6218,6214,6212,6210,6207,6208,6206,6201,6200,6198,6195,6193,6189,6190,6187,6188,6185,6181,6182,6179,6177,6175,6174,6173,6172,6168,6165,6164,6161,6151,6147,6148,6146,6140,6138,6135,6136,6103,6102,6101,6100,6096,6095,6092,6093,6091,6089,6086,6085,6084,6083,6082,6078,6077,6075,6076,6074,6072,6071,6070,6028,6012,6015,6011,6005,5922,5838,5737,5740,5746,5719,5721,5723,5724,5765,5785,5787,5577,5584,5588,5589,5591,5613,5819,5821,5822,5826,5827,5829,5422,5415,5428,5427,5426,5439,5433,5434,5432,5449,5447,5693,5647,5648,5652,5653,5654,5656,5657,5659,5662,5664,5665,5667,5668,5670,5677,5679,5680,5681,5682,5571,5508,5535,5533,5532,5525,5524,5516,5514,5513,5489,5487,5486,5298,5294,5292,5301,5278,5276,5274,5270,5268,5078,5115,5065,5076,5476,4954,4950,5046,5043,5153,5157,5155,5174,5182,5189,5187,5216,5217,5215,5205,5202,5220,5231,5235,5233,5244,5242,5241,5240,5239,5247,5256,5260,5316,5305,5349,5343,5341,5895,5863,5870,5332,5715,5881,4782,4805,4802,4795,4792,4791,4777,4760,4592,4676,4637,4625,4704,4684,4682,4680,5015,5016,4536,4308,4243,4232,4213,4212,4206,4185,4029,4004,3993,3748,3908,5337,10,4070,4778)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.016 s)
(total time      : 0.047 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,
    '41'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.016 s)
(total time      : 0.049 s)
(affected rows   : 1 )