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 = '36C6cf1jc2s36u4q5438avn0g65gt5'
;
(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_tags
  WHERE id IN (390)
(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 (390)
  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.002 s)
(total SQL time  : 0.004 s)
(total time      : 0.009 s)
(num rows        : 280 )
[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.004 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.004 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 (6126,6125,6124,5941,5937,5932,5933,5938,5923,5915,5850,5851,5852,5853,5854,5855,5839,5840,5846,5745,5746,5748,5762,5763,5764,5768,5794,5795,5796,5799,5380,5378,5392,5400,5401,5398,5408,5407,5413,5442,5440,5443,5459,5558,5324,4967,4966,4965,4964,4962,4963,4960,4961,4959,5154,4870,5227,5228,5356,4865,4862,4863,5372,5373,5371,5376,5377,5898,5897,4830,4829,4789,4788,4787,4786,4785,4784,4783,4782,4745,4746,4743,4744,4742,4735,4733,4734,4585,4583,4582,4581,4580,4588,4586,4602,4601,4603,4604,5326,4820,4578,4575,4574,4576,4570,4571,4569,4990,4573,4298,4250,4248,4249,4172,4171,4167,4154,4153,4131,4130,4129,4122,4125,4116,4094,4034,4035,4033,4030,4032,4106,4031,4036,4029,4025,4027,3977,3978,3976,3974,3975,3973,3884,3883,3880,3882,3881,3878,3879,3877,3886,3885,3893,3674,3673,3672,3671,3670,3669,3668,3666,3667,3664,3665,3663,3662,3661,3660,3659,3658,3657,3656,3655,3654,3653,3652,3651,3650,3649,3648,3647,3646,3645,3644,3643,3642,3641,3640,3639,3638,3637,3636,3635,3634,3633,3632,3631,3630,3629,3628,3627,3626,3625,3624,3623,3729,3730,3728,3727,3726,3725,3724,3721,3723,3722,3720,3718,3719,3621,3682,3693,3683,3681,3692,3852,3851,3850,3849,3848,3615,3847,3845,3844,3862,3859,3860,3857,3614,3858,3839,3840,3841,3750,3749,3748,3747,3746,3745,3744,3743,3742,3579,3735,3578,3738,3577,3733,3734,3575,3732,3731,3576,3574,3694,3902,3556,4115,3559,3541,3304,3306,3305,3300,3547,3548,3552,3549,3554,3558,4290)
    AND tag_id NOT IN (390)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.011 s)
(total SQL time  : 0.015 s)
(total time      : 0.024 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (6126,6125,6124,5941,5937,5932,5933,5938,5923,5915,5850,5851,5852,5853,5854,5855,5839,5840,5846,5745,5746,5748,5762,5763,5764,5768,5794,5795,5796,5799,5380,5378,5392,5400,5401,5398,5408,5407,5413,5442,5440,5443,5459,5558,5324,4967,4966,4965,4964,4962,4963,4960,4961,4959,5154,4870,5227,5228,5356,4865,4862,4863,5372,5373,5371,5376,5377,5898,5897,4830,4829,4789,4788,4787,4786,4785,4784,4783,4782,4745,4746,4743,4744,4742,4735,4733,4734,4585,4583,4582,4581,4580,4588,4586,4602,4601,4603,4604,5326,4820,4578,4575,4574,4576,4570,4571,4569,4990,4573,4298,4250,4248,4249,4172,4171,4167,4154,4153,4131,4130,4129,4122,4125,4116,4094,4034,4035,4033,4030,4032,4106,4031,4036,4029,4025,4027,3977,3978,3976,3974,3975,3973,3884,3883,3880,3882,3881,3878,3879,3877,3886,3885,3893,3674,3673,3672,3671,3670,3669,3668,3666,3667,3664,3665,3663,3662,3661,3660,3659,3658,3657,3656,3655,3654,3653,3652,3651,3650,3649,3648,3647,3646,3645,3644,3643,3642,3641,3640,3639,3638,3637,3636,3635,3634,3633,3632,3631,3630,3629,3628,3627,3626,3625,3624,3623,3729,3730,3728,3727,3726,3725,3724,3721,3723,3722,3720,3718,3719,3621,3682,3693,3683,3681,3692,3852,3851,3850,3849,3848,3615,3847,3845,3844,3862,3859,3860,3857,3614,3858,3839,3840,3841,3750,3749,3748,3747,3746,3745,3744,3743,3742,3579,3735,3578,3738,3577,3733,3734,3575,3732,3731,3576,3574,3694,3902,3556,4115,3559,3541,3304,3306,3305,3300,3547,3548,3552,3549,3554,3558,4290)
;
(this query time : 0.002 s)
(total SQL time  : 0.017 s)
(total time      : 0.028 s)
(num rows        : 280 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (6126,6125,6124,5941,5937,5932,5933,5938,5923,5915,5850,5851,5852,5853,5854,5855,5839,5840,5846,5745,5746,5748,5762,5763,5764,5768,5794,5795,5796,5799,5380,5378,5392,5400,5401,5398,5408,5407,5413,5442,5440,5443,5459,5558,5324,4967,4966,4965,4964,4962,4963,4960,4961,4959,5154,4870,5227,5228,5356,4865,4862,4863,5372,5373,5371,5376,5377,5898,5897,4830,4829,4789,4788,4787,4786,4785,4784,4783,4782,4745,4746,4743,4744,4742,4735,4733,4734,4585,4583,4582,4581,4580,4588,4586,4602,4601,4603,4604,5326,4820,4578,4575,4574,4576,4570,4571,4569,4990,4573,4298,4250,4248,4249,4172,4171,4167,4154,4153,4131,4130,4129,4122,4125,4116,4094,4034,4035,4033,4030,4032,4106,4031,4036,4029,4025,4027,3977,3978,3976,3974,3975,3973,3884,3883,3880,3882,3881,3878,3879,3877,3886,3885,3893,3674,3673,3672,3671,3670,3669,3668,3666,3667,3664,3665,3663,3662,3661,3660,3659,3658,3657,3656,3655,3654,3653,3652,3651,3650,3649,3648,3647,3646,3645,3644,3643,3642,3641,3640,3639,3638,3637,3636,3635,3634,3633,3632,3631,3630,3629,3628,3627,3626,3625,3624,3623,3729,3730,3728,3727,3726,3725,3724,3721,3723,3722,3720,3718,3719,3621,3682,3693,3683,3681,3692,3852,3851,3850,3849,3848,3615,3847,3845,3844,3862,3859,3860,3857,3614,3858,3839,3840,3841,3750,3749,3748,3747,3746,3745,3744,3743,3742,3579,3735,3578,3738,3577,3733,3734,3575,3732,3731,3576,3574,3694,3902,3556,4115,3559,3541,3304,3306,3305,3300,3547,3548,3552,3549,3554,3558,4290)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.018 s)
(total time      : 0.052 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.198.103.13',
    'tags',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '390'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.018 s)
(total time      : 0.056 s)
(affected rows   : 1 )