1. select |
total: 1 SELECT * FROM `settings` WHERE id = 1 ;
2. select |
total: 16 SELECT * FROM `menus` WHERE active = 1 ORDER BY parent_id, position;
3. select |
total: 1 SELECT * FROM `pages` WHERE slug_en = "svg-header" AND page_type = "normal" AND active = 1 LIMIT 1;
4. SELECT |
total: 1 SELECT
YEAR(created) AS year,
DATE_FORMAT(created, '%m') AS month,
COUNT(id) AS total
FROM
`mod_blog`
WHERE active = 1
AND created <= DATE_SUB(NOW(), INTERVAL 1 MONTH)
GROUP BY year, month
ORDER BY year DESC, month DESC;
5. SELECT |
total: 3 SELECT
title_en AS title,
slug_en AS slug,
thumb,
created,
id
FROM
`mod_blog`
WHERE active = 1
ORDER BY hits DESC LIMIT 5;
6. SELECT |
total: 0 SELECT
c.body,
a.title_en AS title,
a.slug_en AS slug,
c.created
FROM
`mod_comments` AS c
LEFT JOIN `mod_blog` AS a
ON a.id = c.parent_id
WHERE c.section = "blog"
AND c.active = 1
AND a.active = 1
ORDER BY c.created DESC
LIMIT 5;
1. select | total: 1 . SELECT * FROM `settings` WHERE id = 1 ;
2. select | total: 16 . SELECT * FROM `menus` WHERE active = 1 ORDER BY parent_id, position;
3. SELECT | total: 1 . SELECT *,u.id as id, m.title_en as mtitle
FROM `users` as u
LEFT JOIN memberships as m on m.id = u.membership_id
WHERE u.username = "cmsadmin"
AND u.active = "y"
4. SELECT | total: 0 . SELECT
cf.*,
cd.field_value
FROM
`custom_fields` AS cf
LEFT JOIN `custom_fields_data` AS cd
ON cd.field_id = cf.id
WHERE cd.user_id = 1
AND cf.section = "profile"
AND cf.active = 1
ORDER BY cf.sorting;
5. SELECT | total: 1 . SELECT
m.id,
m.title,
m.target_amount,
m.redirect_page,
m.pp_email,
(SELECT COALESCE(SUM(amount), 0) FROM `plug_donation_data` WHERE parent_id = m.id) as total
FROM
`plug_donation` AS m
WHERE m.id = "1";
6. SELECT | total: 3 . SELECT
title_en AS title,
slug_en AS slug,
thumb,
created,
id
FROM
`mod_blog`
WHERE active = 1
ORDER BY hits DESC LIMIT 5;
7. SELECT | total: 0 . SELECT
c.body,
a.title_en AS title,
a.slug_en AS slug,
c.created
FROM
`mod_comments` AS c
LEFT JOIN `mod_blog` AS a
ON a.id = c.parent_id
WHERE c.section = "blog"
AND c.active = 1
AND a.active = 1
ORDER BY c.created DESC
LIMIT 5;
3. select | total: 1 . SELECT * FROM `pages` WHERE slug_en = "svg-header" AND page_type = "normal" AND active = 1 LIMIT 1;
4. SELECT | total: 1 . SELECT
YEAR(created) AS year,
DATE_FORMAT(created, '%m') AS month,
COUNT(id) AS total
FROM
`mod_blog`
WHERE active = 1
AND created <= DATE_SUB(NOW(), INTERVAL 1 MONTH)
GROUP BY year, month
ORDER BY year DESC, month DESC;
5. select | total: 1 . SELECT * FROM `mod_forms` WHERE id = "1" LIMIT 1;
6. select | total: 9 . SELECT * FROM `mod_forms_fields` WHERE form_id = 1 AND is_system = 0 ORDER BY sorting;
7. SELECT | total: 1 . SELECT
YEAR(created) AS year,
DATE_FORMAT(created, '%m') AS month,
COUNT(id) AS total
FROM
`mod_blog`
WHERE active = 1
AND created <= DATE_SUB(NOW(), INTERVAL 1 MONTH)
GROUP BY year, month
ORDER BY year DESC, month DESC;
8. SELECT | total: 3 . SELECT
title_en AS title,
slug_en AS slug,
thumb,
created,
id
FROM
`mod_blog`
WHERE active = 1
ORDER BY hits DESC LIMIT 5;
9. SELECT | total: 0 . SELECT
c.body,
a.title_en AS title,
a.slug_en AS slug,
c.created
FROM
`mod_comments` AS c
LEFT JOIN `mod_blog` AS a
ON a.id = c.parent_id
WHERE c.section = "blog"
AND c.active = 1
AND a.active = 1
ORDER BY c.created DESC
LIMIT 5;
4. SELECT | total: 2 . SELECT
id,
plugin_id,
jscode,
show_title,
alt_class,
title_en AS title ,
body_en AS body
FROM
`plugins`
WHERE id IN (13,3)
AND active = 1
6. select | total: 1 . SELECT slug_en as slug FROM `pages` WHERE id = 1 LIMIT 1;
7. SELECT | total: 4 . SELECT
q.question,
q.id as id,
o.value,
o.id As oid,
IFNULL(COUNT(v.option_id), 0) AS total
FROM
`plug_poll_options` AS o
LEFT JOIN `plug_poll_votes` AS v
ON o.id = v.option_id
JOIN `plug_poll_questions` AS q
ON o.question_id = q.id
WHERE o.question_id = "1"
GROUP BY o.id
ORDER BY o.position;
8. SELECT | total: 1 . SELECT
YEAR(created) AS year,
DATE_FORMAT(created, '%m') AS month,
COUNT(id) AS total
FROM
`mod_blog`
WHERE active = 1
AND created <= DATE_SUB(NOW(), INTERVAL 1 MONTH)
GROUP BY year, month
ORDER BY year DESC, month DESC;
9. SELECT | total: 3 . SELECT
title_en AS title,
slug_en AS slug,
thumb,
created,
id
FROM
`mod_blog`
WHERE active = 1
ORDER BY hits DESC LIMIT 5;
10. SELECT | total: 0 . SELECT
c.body,
a.title_en AS title,
a.slug_en AS slug,
c.created
FROM
`mod_comments` AS c
LEFT JOIN `mod_blog` AS a
ON a.id = c.parent_id
WHERE c.section = "blog"
AND c.active = 1
AND a.active = 1
ORDER BY c.created DESC
LIMIT 5;
2. select | total: 1 . SELECT title_en, info_en, keywords_en, description_en FROM `modules` WHERE modalias = "blog" LIMIT 1;
3. select | total: 0 . SELECT * FROM `custom_fields` WHERE section = "profile" AND active = 1 ORDER BY sorting;
3. count | total: 3 . SELECT COUNT(*) FROM `mod_blog` WHERE active = 1 LIMIT 1
4. SELECT | total: 3 . SELECT
a.id,
a.created,
a.title_en AS title,
a.slug_en AS slug,
a.body_en AS body,
a.thumb,
c.slug_en AS cslug,
c.name_en AS ctitle,
(SELECT
COUNT(parent_id)
FROM
`mod_comments`
WHERE `mod_comments`.parent_id = a.id
AND section = 'blog') as comments
FROM
`mod_blog` AS a
LEFT JOIN `mod_blog_categories` AS c
ON c.id = a.category_id
LEFT JOIN `users` AS u
ON u.id = a.user_id
WHERE a.active = 1
ORDER BY a.created DESC LIMIT 0,11
5. select | total: 16 . SELECT * FROM `menus` WHERE active = 1 ORDER BY parent_id, position;
6. SELECT | total: 0 . SELECT
c.body,
a.title_en AS title,
a.slug_en AS slug,
c.created
FROM
`mod_comments` AS c
LEFT JOIN `mod_blog` AS a
ON a.id = c.parent_id
WHERE c.section = "blog"
AND c.active = 1
AND a.active = 1
ORDER BY c.created DESC
LIMIT 5;
5. SELECT | total: 3 . SELECT
title_en AS title,
slug_en AS slug,
thumb,
created,
id
FROM
`mod_blog`
WHERE active = 1
ORDER BY hits DESC LIMIT 5;