MySQL Debugger Results | ||
Count | SQL query | Time to execute |
1 | SELECT id, word, lang_1 as text FROM shop_language_words | 0,0021 |
2 | INSERT INTO shop_logs (add_date, ip, url, user_agent) VALUES ('2023-06-08 12:12:12', '35.172.164.32', '/brand-167/bass_polska', 'CCBot/2.0 (https://commoncrawl.org/faq/)') | 0,0012 |
3 | SELECT t.id,t.language,t.code,t.flag,t.active FROM `shop_languages` AS t WHERE 1 AND t.`active` = '1' ORDER BY id DESC LIMIT 0, 300 | 0,0002 |
4 | SELECT * FROM `shop_languages` WHERE id = ? | 0,0002 |
5 | SELECT `id` as `value`, `t` as `title` FROM `fm_brands` ORDER by `value` ASC | 0,0006 |
6 | SELECT `id` as `value`, `t` as `title` FROM `fm_brands` ORDER by `value` ASC | 0,0005 |
7 | SELECT `id` as `value`, `name` as `title` FROM `shop_properties` ORDER by `value` ASC | 0,0002 |
8 | SELECT * FROM `fm_brands` WHERE id = ? | 0,0002 |
9 | SELECT c.id, c.parent_id, c.name, c.active, c.shown_name, c.seo_url, COUNT(p.id) as active_products FROM shop_products AS p LEFT JOIN shop_categories AS c ON c.id = p.category_id WHERE p.brand_id = '167' AND c.parent_id != 0 AND p.active = 1 GROUP BY c.id ORDER BY sortorder ASC, name ASC | 0,0006 |
10 | SELECT p.* FROM shop_products as p LEFT JOIN fm_pr AS pp ON pp.id = p.id WHERE p.active = 1 AND brand_id = ? ORDER BY pp.instorage DESC, p.priority DESC, p.views DESC | 0,0012 |
11 | SELECT id, parent_id, name, active, shown_name, seo_url, active_products FROM shop_categories WHERE id IN () ORDER BY name ASC | 0,0002 |
12 | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY name ASC' at line 1 | 0,0002 |
- - | All Queries Time | 0,0074 |
#0 /home/cmx/public_html/app/system/Database.class.php(503): Registry::get('lang') #1 /home/cmx/public_html/app/system/Database.class.php(129): Database->onDbError('SELECT id, pare...', 'SQLSTATE[42000]...') #2 /home/cmx/public_html/app/modules/Store/models/Search.model.php(302): Database->fetchAll('SELECT id, pare...') #3 /home/cmx/public_html/app/modules/Store/front/Brands.controller.php(40): Search->getRemainingCategories(true) #4 /home/cmx/public_html/app/system/Controller.class.php(176): BrandsController->indexAction() #5 /home/cmx/public_html/index.php(110): Controller->Start() #6 {main}
'lang' is not set in the Registry