kewl's gallery

Night photography and night time lapse
[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.001 s)
(total time      : 0.003 s)
(num rows        : 92 )
[3] 

SELECT data
  FROM g_sessions
  WHERE id = '365Csefs4povc7f1t82brtfrqtd1o6'
;
(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 = 102
;
(this query time : 0.000 s)
(total SQL time  : 0.002 s)
(total time      : 0.007 s)
(num rows        : 1 )
[9] 

SELECT DISTINCT(image_id)
  FROM g_image_category
    INNER JOIN g_images ON id = image_id
  WHERE
    category_id = 102
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.008 s)
(num rows        : 138 )
[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.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 (6126,5941,5938,5939,5745,5735,5763,5400,5440,5324,5325,4862,4863,4865,5898,5897,4830,4828,4831,4829,4746,4745,4744,4742,4743,4733,4734,4583,4588,4601,4602,4603,4604,5326,4578,4575,4574,4576,4571,4572,4570,4569,4573,4298,4180,4122,4123,4116,4031,4032,4030,4033,4035,4034,4036,4025,4029,3975,3627,3622,3669,3726,3725,3724,3723,3722,3721,3720,3719,3718,3730,3729,3728,3727,3692,3681,3683,3693,3682,3845,3847,3848,3849,3850,3851,3852,3615,3844,3858,3857,3860,3614,3859,3862,3742,3743,3744,3745,3746,3747,3748,3749,3750,3738,3735,3737,3574,3576,3575,3731,3577,3732,3578,3734,3579,3733,3694,3556,4115,3541,3537,3536,3535,3533,3305,3306,3304,3303,3302,3300,3547,3548,3552,3549,3554,3558,3560,4290)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 12
(this query time : 0.005 s)
(total SQL time  : 0.009 s)
(total time      : 0.017 s)
(num rows        : 12 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6126,5941,5938,5939,5745,5735,5763,5400,5440,5324,5325,4862,4863,4865,5898,5897,4830,4828,4831,4829,4746,4745,4744,4742,4743,4733,4734,4583,4588,4601,4602,4603,4604,5326,4578,4575,4574,4576,4571,4572,4570,4569,4573,4298,4180,4122,4123,4116,4031,4032,4030,4033,4035,4034,4036,4025,4029,3975,3627,3622,3669,3726,3725,3724,3723,3722,3721,3720,3719,3718,3730,3729,3728,3727,3692,3681,3683,3693,3682,3845,3847,3848,3849,3850,3851,3852,3615,3844,3858,3857,3860,3614,3859,3862,3742,3743,3744,3745,3746,3747,3748,3749,3750,3738,3735,3737,3574,3576,3575,3731,3577,3732,3578,3734,3579,3733,3694,3556,4115,3541,3537,3536,3535,3533,3305,3306,3304,3303,3302,3300,3547,3548,3552,3549,3554,3558,3560,4290)
;
(this query time : 0.001 s)
(total SQL time  : 0.010 s)
(total time      : 0.020 s)
(num rows        : 138 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6126,5941,5938,5939,5745,5735,5763,5400,5440,5324,5325,4862,4863,4865,5898,5897,4830,4828,4831,4829,4746,4745,4744,4742,4743,4733,4734,4583,4588,4601,4602,4603,4604,5326,4578,4575,4574,4576,4571,4572,4570,4569,4573,4298,4180,4122,4123,4116,4031,4032,4030,4033,4035,4034,4036,4025,4029,3975,3627,3622,3669,3726,3725,3724,3723,3722,3721,3720,3719,3718,3730,3729,3728,3727,3692,3681,3683,3693,3682,3845,3847,3848,3849,3850,3851,3852,3615,3844,3858,3857,3860,3614,3859,3862,3742,3743,3744,3745,3746,3747,3748,3749,3750,3738,3735,3737,3574,3576,3575,3731,3577,3732,3578,3734,3579,3733,3694,3556,4115,3541,3537,3536,3535,3533,3305,3306,3304,3303,3302,3300,3547,3548,3552,3549,3554,3558,3560,4290)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.011 s)
(total time      : 0.035 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',
    102,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.011 s)
(total time      : 0.038 s)
(affected rows   : 1 )