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 = '365C0k43pd8m3v9f96sotbqe6t5jj4'
;
(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_categories
  WHERE id = 146
;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.008 s)
(num rows        : 1 )
[10] 

  SELECT id, name, permalink
    FROM g_categories
    WHERE id IN (152,146)
  ;
(this query time : 0.000 s)
(total SQL time  : 0.003 s)
(total time      : 0.008 s)
(num rows        : 2 )
[9] 

SELECT DISTINCT(image_id)
  FROM g_image_category
    INNER JOIN g_images ON id = image_id
  WHERE
    category_id = 146
AND (category_id NOT IN (188,201,198,200,182,212) AND level<=0)
   ORDER BY date_creation DESC
;
(this query time : 0.001 s)
(total SQL time  : 0.003 s)
(total time      : 0.009 s)
(num rows        : 119 )
[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.010 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 (4870,4832,4830,4831,4829,4749,4748,4747,4746,4745,4744,4743,4738,4735,4585,4583,4582,4581,4580,4579,4587,4586,4600,4599,4598,4597,4596,4595,4594,4593,4592,4591,4590,4589,4588,4602,4601,4603,4604,4577,4566,4565,4564,4563,4562,4561,4560,4548,4547,4546,4545,4544,4542,4541,4540,4539,4538,4537,4536,4535,4534,4543,4533,4532,4531,4529,4530,4528,4308,4307,4527,4526,4524,4354,4264,4263,4262,4261,4260,4272,4271,4270,4269,4268,4267,4266,4265,4278,4277,4276,4275,4274,4273,4280,4279,4285,4284,4283,4282,4281,4558,4554,4553,4552,4551,4257,4550,4256,4549,4247,4246,4249,4248,4250,4555,4556,4025,4557,3543)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.005 s)
(total SQL time  : 0.008 s)
(total time      : 0.018 s)
(num rows        : 12 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (4870,4832,4830,4831,4829,4749,4748,4747,4746,4745,4744,4743,4738,4735,4585,4583,4582,4581,4580,4579,4587,4586,4600,4599,4598,4597,4596,4595,4594,4593,4592,4591,4590,4589,4588,4602,4601,4603,4604,4577,4566,4565,4564,4563,4562,4561,4560,4548,4547,4546,4545,4544,4542,4541,4540,4539,4538,4537,4536,4535,4534,4543,4533,4532,4531,4529,4530,4528,4308,4307,4527,4526,4524,4354,4264,4263,4262,4261,4260,4272,4271,4270,4269,4268,4267,4266,4265,4278,4277,4276,4275,4274,4273,4280,4279,4285,4284,4283,4282,4281,4558,4554,4553,4552,4551,4257,4550,4256,4549,4247,4246,4249,4248,4250,4555,4556,4025,4557,3543)
;
(this query time : 0.001 s)
(total SQL time  : 0.009 s)
(total time      : 0.022 s)
(num rows        : 119 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (4870,4832,4830,4831,4829,4749,4748,4747,4746,4745,4744,4743,4738,4735,4585,4583,4582,4581,4580,4579,4587,4586,4600,4599,4598,4597,4596,4595,4594,4593,4592,4591,4590,4589,4588,4602,4601,4603,4604,4577,4566,4565,4564,4563,4562,4561,4560,4548,4547,4546,4545,4544,4542,4541,4540,4539,4538,4537,4536,4535,4534,4543,4533,4532,4531,4529,4530,4528,4308,4307,4527,4526,4524,4354,4264,4263,4262,4261,4260,4272,4271,4270,4269,4268,4267,4266,4265,4278,4277,4276,4275,4274,4273,4280,4279,4285,4284,4283,4282,4281,4558,4554,4553,4552,4551,4257,4550,4256,4549,4247,4246,4249,4248,4250,4555,4556,4025,4557,3543)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.009 s)
(total time      : 0.038 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',
    'categories',
    146,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.010 s)
(total time      : 0.041 s)
(affected rows   : 1 )