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

SELECT *
  FROM g_tags
  WHERE id IN (1223)
(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 (1223)
  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.003 s)
(total time      : 0.009 s)
(num rows        : 247 )
[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 (5572,5573,5574,5575,5576,5577,5578,5579,5615,5616,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5423,5421,5422,5419,5420,5417,5418,5415,5488,5485,5486,5141,5142,5139,5140,4868,4869,4866,4867,4865,4862,4863,4861,5859,5860,5861,5862,5863,5864,5865,5866,5867,5868,5869,5870,5871,5872,5873,5874,5875,4734,4675,4676,4673,4674,4671,4672,4669,4670,4667,4668,4665,4666,4663,4664,4661,4662,4659,4660,4657,4658,4656,4655,4653,4654,4651,4652,4650,4649,4647,4648,4645,4646,4643,4644,4641,4642,4639,4640,4637,4638,4636,4633,4634,4631,4632,4629,4630,4628,4627,4625,4626,4624,4730,4729,4727,4728,4725,4726,4723,4724,4721,4722,4719,4720,4717,4718,4715,4716,4713,4714,4711,4712,4709,4710,4707,4708,4705,4706,4704,4703,4702,4701,4700,4699,4697,4698,4695,4696,4693,4694,4691,4692,4689,4690,4687,4688,4685,4686,4684,4683,4682,4681,4680,4678,4679,4677,4243,4233,4232,4231,4242,4245,4244,4234,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206)
    AND tag_id NOT IN (1223)
  GROUP BY t.id
  ORDER BY counter DESC
  LIMIT 20
(this query time : 0.009 s)
(total SQL time  : 0.013 s)
(total time      : 0.022 s)
(num rows        : 20 )
[13] 

SELECT *
  FROM g_images
  WHERE id IN (5572,5573,5574,5575,5576,5577,5578,5579,5615,5616,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5423,5421,5422,5419,5420,5417,5418,5415,5488,5485,5486,5141,5142,5139,5140,4868,4869,4866,4867,4865,4862,4863,4861,5859,5860,5861,5862,5863,5864,5865,5866,5867,5868,5869,5870,5871,5872,5873,5874,5875,4734,4675,4676,4673,4674,4671,4672,4669,4670,4667,4668,4665,4666,4663,4664,4661,4662,4659,4660,4657,4658,4656,4655,4653,4654,4651,4652,4650,4649,4647,4648,4645,4646,4643,4644,4641,4642,4639,4640,4637,4638,4636,4633,4634,4631,4632,4629,4630,4628,4627,4625,4626,4624,4730,4729,4727,4728,4725,4726,4723,4724,4721,4722,4719,4720,4717,4718,4715,4716,4713,4714,4711,4712,4709,4710,4707,4708,4705,4706,4704,4703,4702,4701,4700,4699,4697,4698,4695,4696,4693,4694,4691,4692,4689,4690,4687,4688,4685,4686,4684,4683,4682,4681,4680,4678,4679,4677,4243,4233,4232,4231,4242,4245,4244,4234,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206)
;
(this query time : 0.002 s)
(total SQL time  : 0.015 s)
(total time      : 0.026 s)
(num rows        : 247 )

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

[14] 

SELECT id FROM g_images
WHERE latitude IS NOT NULL
  AND id IN (5572,5573,5574,5575,5576,5577,5578,5579,5615,5616,5580,5581,5582,5583,5584,5585,5586,5587,5588,5589,5590,5591,5592,5593,5594,5595,5596,5597,5598,5599,5600,5601,5602,5603,5604,5605,5606,5607,5608,5609,5610,5611,5612,5613,5630,5631,5632,5633,5634,5635,5636,5637,5638,5639,5640,5641,5642,5643,5644,5645,5617,5618,5619,5620,5621,5622,5623,5624,5625,5626,5627,5628,5629,5423,5421,5422,5419,5420,5417,5418,5415,5488,5485,5486,5141,5142,5139,5140,4868,4869,4866,4867,4865,4862,4863,4861,5859,5860,5861,5862,5863,5864,5865,5866,5867,5868,5869,5870,5871,5872,5873,5874,5875,4734,4675,4676,4673,4674,4671,4672,4669,4670,4667,4668,4665,4666,4663,4664,4661,4662,4659,4660,4657,4658,4656,4655,4653,4654,4651,4652,4650,4649,4647,4648,4645,4646,4643,4644,4641,4642,4639,4640,4637,4638,4636,4633,4634,4631,4632,4629,4630,4628,4627,4625,4626,4624,4730,4729,4727,4728,4725,4726,4723,4724,4721,4722,4719,4720,4717,4718,4715,4716,4713,4714,4711,4712,4709,4710,4707,4708,4705,4706,4704,4703,4702,4701,4700,4699,4697,4698,4695,4696,4693,4694,4691,4692,4689,4690,4687,4688,4685,4686,4684,4683,4682,4681,4680,4678,4679,4677,4243,4233,4232,4231,4242,4245,4244,4234,4221,4220,4219,4218,4217,4216,4205,4204,4215,4214,4203,4213,4212,4211,4210,4209,4208,4207,4206)
ORDER BY NULL
LIMIT 0,1
(this query time : 0.001 s)
(total SQL time  : 0.015 s)
(total time      : 0.047 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',
    'tags',
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    '1223'
  )
;
(this query time : 0.000 s)
(total SQL time  : 0.016 s)
(total time      : 0.050 s)
(affected rows   : 1 )