kewl's gallery

[1] 
SELECT @@SESSION.sql_mode
(this query time : 0.000 s)
(total SQL time  : 0.000 s)
(total time      : 0.210 s)
(num rows        : 1 )
[2] 

SELECT param, value
 FROM g_config
 
;
(this query time : 0.000 s)
(total SQL time  : 0.001 s)
(total time      : 0.210 s)
(num rows        : 92 )
[3] 

SELECT data
  FROM g_sessions
  WHERE id = '365Csaj437d1c2529dm3lmci1v1q27'
;
(this query time : 0.000 s)
(total SQL time  : 0.001 s)
(total time      : 0.211 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.211 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.213 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.213 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.213 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.214 s)
(num rows        : 1 )
[9] 

SELECT *
  FROM g_categories
  WHERE id = 149
;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.215 s)
(num rows        : 1 )
[10] 

  SELECT id, name, permalink
    FROM g_categories
    WHERE id IN (107,149)
  ;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.215 s)
(num rows        : 2 )
[9] 

SELECT DISTINCT(image_id)
  FROM g_image_category
    INNER JOIN g_images ON id = image_id
  WHERE
    category_id = 149
AND (category_id NOT IN (188,201,198,200,182,212) AND level<=0)
  ORDER BY date_creation DESC, file ASC, id ASC
;
(this query time : 0.001 s)
(total SQL time  : 0.003 s)
(total time      : 0.216 s)
(num rows        : 85 )
[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.216 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.217 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 (4327,4326,4325,4324,4323,4322,4321,4320,4319,4318,4317,4316,4315,4314,4313,4312,4311,4310,4353,4352,4351,4350,4349,4348,4347,4346,4345,4344,4343,4342,4341,4340,4339,4338,4337,4336,4335,4334,4333,4332,4331,4330,4329,4328,4368,4367,4366,4365,4364,4363,4362,4361,4360,4359,4358,4357,4356,4377,4376,4375,4374,4373,4372,4371,4370,4369,4522,4523,4520,4521,4519,4518,4516,4517,4515,4514,4512,4513,4510,4511,4509,4508,4506,4507,4505)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.003 s)
(total SQL time  : 0.006 s)
(total time      : 0.222 s)
(num rows        : 12 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (4327,4326,4325,4324,4323,4322,4321,4320,4319,4318,4317,4316,4315,4314,4313,4312,4311,4310,4353,4352,4351,4350,4349,4348,4347,4346,4345,4344,4343,4342,4341,4340,4339,4338,4337,4336,4335,4334,4333,4332,4331,4330,4329,4328,4368,4367,4366,4365,4364,4363,4362,4361,4360,4359,4358,4357,4356,4377,4376,4375,4374,4373,4372,4371,4370,4369,4522,4523,4520,4521,4519,4518,4516,4517,4515,4514,4512,4513,4510,4511,4509,4508,4506,4507,4505)
;
(this query time : 0.001 s)
(total SQL time  : 0.006 s)
(total time      : 0.225 s)
(num rows        : 85 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (4327,4326,4325,4324,4323,4322,4321,4320,4319,4318,4317,4316,4315,4314,4313,4312,4311,4310,4353,4352,4351,4350,4349,4348,4347,4346,4345,4344,4343,4342,4341,4340,4339,4338,4337,4336,4335,4334,4333,4332,4331,4330,4329,4328,4368,4367,4366,4365,4364,4363,4362,4361,4360,4359,4358,4357,4356,4377,4376,4375,4374,4373,4372,4371,4370,4369,4522,4523,4520,4521,4519,4518,4516,4517,4515,4514,4512,4513,4510,4511,4509,4508,4506,4507,4505)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.000 s)
(total SQL time  : 0.007 s)
(total time      : 0.233 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',
    149,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.007 s)
(total time      : 0.235 s)
(affected rows   : 1 )