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 = '36C69mlqi3obk2abv8pdba0ag843p3'
;
(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.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 (384)
(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 (384)
  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.008 s)
(num rows        : 111 )
[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.008 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.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 (6169,6117,6025,5999,5983,5932,5933,5934,5922,5924,5855,5837,5838,5839,5840,5830,5831,5832,5833,5834,5835,5836,5752,5755,5797,5798,5802,5811,5810,5814,5817,5406,5404,5398,5399,5555,5554,5556,5557,5550,5539,5538,5537,5286,5287,5285,5283,5278,5275,5280,5078,4937,4943,4944,4942,4939,4948,4945,4946,4976,5053,5036,5038,5044,4987,5151,5160,5161,5225,5230,5231,5229,5245,5247,5249,5252,5322,5312,5354,5376,5377,4832,4830,4747,4742,4579,4582,4581,4580,5033,4996,5002,5007,5003,4545,4278,4226,4033,4030,4032,4106,4031,4036,4105,3302,3303,3304,3306,3305,3300,3548)
    AND tag_id NOT IN (384)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.005 s)
(total SQL time  : 0.008 s)
(total time      : 0.016 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6169,6117,6025,5999,5983,5932,5933,5934,5922,5924,5855,5837,5838,5839,5840,5830,5831,5832,5833,5834,5835,5836,5752,5755,5797,5798,5802,5811,5810,5814,5817,5406,5404,5398,5399,5555,5554,5556,5557,5550,5539,5538,5537,5286,5287,5285,5283,5278,5275,5280,5078,4937,4943,4944,4942,4939,4948,4945,4946,4976,5053,5036,5038,5044,4987,5151,5160,5161,5225,5230,5231,5229,5245,5247,5249,5252,5322,5312,5354,5376,5377,4832,4830,4747,4742,4579,4582,4581,4580,5033,4996,5002,5007,5003,4545,4278,4226,4033,4030,4032,4106,4031,4036,4105,3302,3303,3304,3306,3305,3300,3548)
;
(this query time : 0.001 s)
(total SQL time  : 0.009 s)
(total time      : 0.019 s)
(num rows        : 111 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6169,6117,6025,5999,5983,5932,5933,5934,5922,5924,5855,5837,5838,5839,5840,5830,5831,5832,5833,5834,5835,5836,5752,5755,5797,5798,5802,5811,5810,5814,5817,5406,5404,5398,5399,5555,5554,5556,5557,5550,5539,5538,5537,5286,5287,5285,5283,5278,5275,5280,5078,4937,4943,4944,4942,4939,4948,4945,4946,4976,5053,5036,5038,5044,4987,5151,5160,5161,5225,5230,5231,5229,5245,5247,5249,5252,5322,5312,5354,5376,5377,4832,4830,4747,4742,4579,4582,4581,4580,5033,4996,5002,5007,5003,4545,4278,4226,4033,4030,4032,4106,4031,4036,4105,3302,3303,3304,3306,3305,3300,3548)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.010 s)
(total time      : 0.029 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,
    '384'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.010 s)
(total time      : 0.031 s)
(affected rows   : 1 )