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 = '3651sipqqn15sa1mb53fftodpj97q4'
;
(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.001 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.001 s)
(total time      : 0.006 s)
(num rows        : 1 )
[9] 

SELECT *
  FROM g_tags
  WHERE id IN (37)
(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 (37)
  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        : 129 )
[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 (6143,6142,6141,6134,5935,5936,5932,5928,5929,5830,5831,5832,5833,5834,5835,5836,5738,5760,5794,5382,5395,5436,5458,5692,5496,5086,4974,5191,5212,5213,5223,5224,4864,4862,5373,5860,4739,4760,4762,4644,4730,4259,4258,4257,4549,4232,4231,4234,4220,4205,4204,4213,4197,4196,4184,4195,4202,4201,4189,4101,4100,3882,3897,3896,3894,3893,3682,3693,3683,3681,3692,3687,3856,3852,3850,3849,3848,3847,3845,3844,3861,3859,3857,3614,3858,3741,3836,3837,3838,3839,3840,3841,3740,3756,3749,3745,3575,3732,3576,3715,3708,3706,3703,3541,3506,3507,3508,3509,3510,3511,3513,3514,3520,3521,3522,3523,3524,3525,3526,3527,3533,3534,3536,3537,9,17,18,3548,3551)
    AND tag_id NOT IN (37)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.006 s)
(total SQL time  : 0.009 s)
(total time      : 0.018 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6143,6142,6141,6134,5935,5936,5932,5928,5929,5830,5831,5832,5833,5834,5835,5836,5738,5760,5794,5382,5395,5436,5458,5692,5496,5086,4974,5191,5212,5213,5223,5224,4864,4862,5373,5860,4739,4760,4762,4644,4730,4259,4258,4257,4549,4232,4231,4234,4220,4205,4204,4213,4197,4196,4184,4195,4202,4201,4189,4101,4100,3882,3897,3896,3894,3893,3682,3693,3683,3681,3692,3687,3856,3852,3850,3849,3848,3847,3845,3844,3861,3859,3857,3614,3858,3741,3836,3837,3838,3839,3840,3841,3740,3756,3749,3745,3575,3732,3576,3715,3708,3706,3703,3541,3506,3507,3508,3509,3510,3511,3513,3514,3520,3521,3522,3523,3524,3525,3526,3527,3533,3534,3536,3537,9,17,18,3548,3551)
;
(this query time : 0.001 s)
(total SQL time  : 0.011 s)
(total time      : 0.021 s)
(num rows        : 129 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6143,6142,6141,6134,5935,5936,5932,5928,5929,5830,5831,5832,5833,5834,5835,5836,5738,5760,5794,5382,5395,5436,5458,5692,5496,5086,4974,5191,5212,5213,5223,5224,4864,4862,5373,5860,4739,4760,4762,4644,4730,4259,4258,4257,4549,4232,4231,4234,4220,4205,4204,4213,4197,4196,4184,4195,4202,4201,4189,4101,4100,3882,3897,3896,3894,3893,3682,3693,3683,3681,3692,3687,3856,3852,3850,3849,3848,3847,3845,3844,3861,3859,3857,3614,3858,3741,3836,3837,3838,3839,3840,3841,3740,3756,3749,3745,3575,3732,3576,3715,3708,3706,3703,3541,3506,3507,3508,3509,3510,3511,3513,3514,3520,3521,3522,3523,3524,3525,3526,3527,3533,3534,3536,3537,9,17,18,3548,3551)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.011 s)
(total time      : 0.032 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,
    '37'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.012 s)
(total time      : 0.035 s)
(affected rows   : 1 )
[16] 

SELECT
    COUNT(*)
  FROM g_history
;
(this query time : 0.000 s)
(total SQL time  : 0.012 s)
(total time      : 0.036 s)
(num rows        : 1 )
[17] 

SELECT
    *
  FROM g_history_summary
  WHERE history_id_to IS NOT NULL
  ORDER BY history_id_to DESC
  LIMIT 1
;
(this query time : 0.002 s)
(total SQL time  : 0.014 s)
(total time      : 0.037 s)
(num rows        : 1 )
[18] 

SELECT
    id
  FROM g_history
  ORDER BY id DESC
  LIMIT 1
;
(this query time : 0.000 s)
(total SQL time  : 0.014 s)
(total time      : 0.037 s)
(num rows        : 1 )
[19] 

SELECT
    id
  FROM g_history
  ORDER BY id ASC
  LIMIT 1
;
(this query time : 0.000 s)
(total SQL time  : 0.014 s)
(total time      : 0.038 s)
(num rows        : 1 )
[20] 

DELETE
  FROM g_history
  WHERE id < 5111706
;
(this query time : 0.018 s)
(total SQL time  : 0.032 s)
(total time      : 0.056 s)
(affected rows   : 1021 )