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.003 s)
(num rows        : 92 )
[3] 

SELECT data
  FROM g_sessions
  WHERE id = '3651n1r51tdk7h4rdccrt5m1lm46r2'
;
(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 (44)
(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 (44)
  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        : 84 )
[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 (6032,6094,5991,5736,5755,5725,5760,5761,5765,5766,5810,5616,5590,5817,5384,5538,5131,5116,5064,5061,5477,5483,5475,5051,5045,5039,5148,5206,5207,5218,5259,4868,5365,5376,5716,4784,4781,4738,4741,4762,4761,4756,4754,4755,4751,4807,4599,4596,4593,4594,4586,4728,4714,4712,4692,4995,4534,4271,4266,4261,4233,4219,4215,4184,4152,4103,4000,3975,3971,3970,3965,3953,3938,3939,3936,3937,3881,3731,3715,3712,3710,4115,11,3550)
    AND tag_id NOT IN (44)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.004 s)
(total SQL time  : 0.008 s)
(total time      : 0.017 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6032,6094,5991,5736,5755,5725,5760,5761,5765,5766,5810,5616,5590,5817,5384,5538,5131,5116,5064,5061,5477,5483,5475,5051,5045,5039,5148,5206,5207,5218,5259,4868,5365,5376,5716,4784,4781,4738,4741,4762,4761,4756,4754,4755,4751,4807,4599,4596,4593,4594,4586,4728,4714,4712,4692,4995,4534,4271,4266,4261,4233,4219,4215,4184,4152,4103,4000,3975,3971,3970,3965,3953,3938,3939,3936,3937,3881,3731,3715,3712,3710,4115,11,3550)
;
(this query time : 0.001 s)
(total SQL time  : 0.008 s)
(total time      : 0.020 s)
(num rows        : 84 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6032,6094,5991,5736,5755,5725,5760,5761,5765,5766,5810,5616,5590,5817,5384,5538,5131,5116,5064,5061,5477,5483,5475,5051,5045,5039,5148,5206,5207,5218,5259,4868,5365,5376,5716,4784,4781,4738,4741,4762,4761,4756,4754,4755,4751,4807,4599,4596,4593,4594,4586,4728,4714,4712,4692,4995,4534,4271,4266,4261,4233,4219,4215,4184,4152,4103,4000,3975,3971,3970,3965,3953,3938,3939,3936,3937,3881,3731,3715,3712,3710,4115,11,3550)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.000 s)
(total SQL time  : 0.009 s)
(total time      : 0.028 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.81.150.27',
    'tags',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '44'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.009 s)
(total time      : 0.030 s)
(affected rows   : 1 )