1. select |
total: 1 SELECT * FROM `settings` WHERE id = 1 ;
2. select |
total: 1 SELECT title_en, info_en, keywords_en, description_en FROM `modules` WHERE modalias = "blog" LIMIT 1;
3. select |
total: 16 SELECT * FROM `menus` WHERE active = 1 ORDER BY parent_id, position;
4. SELECT |
total: 1 SELECT
a.*,
a.slug_en as slug,
c.slug_en as catslug,
c.name_en as catname,
CONCAT(u.fname,' ',u.lname) as user,
u.username,
GROUP_CONCAT(m.title_en SEPARATOR ', ') AS memberships
FROM
`mod_blog` AS a
LEFT JOIN `users` AS u
ON u.id = a.user_id
LEFT JOIN `mod_blog_categories` AS c
ON c.id = a.category_id
LEFT JOIN `memberships` AS m
ON FIND_IN_SET(m.id, a.membership_id)
WHERE a.slug_en = "r410a-phase-out-and-new-refrigerant-standards-in-2023"
AND a.active = 1
GROUP BY a.id;
5. UPDATE |
total: 1 UPDATE `mod_blog` SET `hits` = `hits` + 1 WHERE id = 32
6. SELECT |
total: 0 SELECT
p.id,
l.plug_id,
l.space,
l.place,
p.system,
p.alt_class,
p.plugalias,
p.plugin_id,
p.title_en as title,
p.body_en as body,
p.jscode,
p.show_title,
p.cplugin
FROM
`layout` AS l
LEFT JOIN plugins AS p
ON p.id = l.plug_id
WHERE l.modalias = "blog"
AND p.active = 1
ORDER BY l.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;
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 = "our-contact-info" AND page_type = "normal" AND active = 1 LIMIT 1;
4. SELECT | total: 10 . SELECT
title_en AS title,
body_en AS body,
slug_en AS slug ,
page_type
FROM
`pages`
WHERE active = 1
AND page_type = "normal"
AND (`title_en` LIKE '%%') OR (`body_en` LIKE '%%')
ORDER BY created DESC
LIMIT 10;
5. SELECT | total: 0 . SELECT
p.id,
l.plug_id,
l.space,
l.place,
p.system,
p.alt_class,
p.plugalias,
p.plugin_id,
p.title_en as title,
p.body_en as body,
p.jscode,
p.show_title,
p.cplugin
FROM
`layout` AS l
LEFT JOIN plugins AS p
ON p.id = l.plug_id
WHERE l.modalias = "blog"
AND p.active = 1
ORDER BY l.sorting;
6. 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;
7. 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;
8. 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: 1 . SELECT
a.*,
a.slug_en as slug,
c.slug_en as catslug,
c.name_en as catname,
CONCAT(u.fname,' ',u.lname) as user,
u.username,
GROUP_CONCAT(m.title_en SEPARATOR ', ') AS memberships
FROM
`mod_blog` AS a
LEFT JOIN `users` AS u
ON u.id = a.user_id
LEFT JOIN `mod_blog_categories` AS c
ON c.id = a.category_id
LEFT JOIN `memberships` AS m
ON FIND_IN_SET(m.id, a.membership_id)
WHERE a.slug_en = "r410a-phase-out-and-new-refrigerant-standards-in-2023"
AND a.active = 1
GROUP BY a.id;
5. select | total: 1 . SELECT * FROM `mod_gmaps` WHERE id = "1" LIMIT 1;
6. select | total: 7 . SELECT * FROM `mod_forms_fields` WHERE form_id = 3 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: 9 . SELECT title_en AS title, slug_en AS slug FROM `pages` WHERE page_type = "normal" AND active = 1 ;
5. select | total: 3 . SELECT title_en AS title, slug_en AS slug FROM `mod_blog` WHERE active = 1 ;
2. select | total: 1 . SELECT title_en, info_en, keywords_en, description_en FROM `modules` WHERE modalias = "blog" LIMIT 1;
3. select | total: 16 . SELECT * FROM `menus` WHERE active = 1 ORDER BY parent_id, position;
5. UPDATE | total: 1 . UPDATE `mod_blog` SET `hits` = `hits` + 1 WHERE id = 32
6. SELECT | total: 0 . SELECT
p.id,
l.plug_id,
l.space,
l.place,
p.system,
p.alt_class,
p.plugalias,
p.plugin_id,
p.title_en as title,
p.body_en as body,
p.jscode,
p.show_title,
p.cplugin
FROM
`layout` AS l
LEFT JOIN plugins AS p
ON p.id = l.plug_id
WHERE l.modalias = "blog"
AND p.active = 1
ORDER BY l.sorting;
7. count | total: 0 .
SELECT
COUNT(*)
FROM
`mod_comments`
WHERE section = 'blog'
AND comment_id = 0
AND parent_id = 31
AND active = 1
LIMIT 1;
9. 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;
10. 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;
11. 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: 3 . SELECT
a.*,
a.slug_en as slug,
a.title_en as title
FROM
`mod_blog` AS a
WHERE a.active = 1
AND YEAR(a.created) = "2023"
AND MONTH(a.created) = "05"
GROUP BY a.id ORDER BY a.created DESC;