MySQL Debugger Results
Count SQL query Time to execute
1 SELECT id, word, lang_1 as text FROM shop_language_words 0,0024
2 INSERT INTO shop_logs (add_date, ip, url, user_agent) VALUES ('2022-10-04 12:34:29', '44.210.237.158', '/brand-646742/bosch-promo', 'CCBot/2.0 (https://commoncrawl.org/faq/)') 0,0027
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,0008
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,003
6 SELECT COUNT(id) FROM shop_products WHERE active = 1 0,2224
7 SELECT `id` as `value`, `t` as `title` FROM `fm_brands` ORDER by `value` ASC 0,0007
8 SELECT `id` as `value`, `name` as `title` FROM `shop_properties` ORDER by `value` ASC 0,0005
9 SELECT * FROM `fm_brands` WHERE id = ? 0,0004
10 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 = '646742' AND c.parent_id != 0 GROUP BY c.id ORDER BY sortorder ASC, name ASC 0,0004
11 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,001
12 SELECT id, parent_id, name, active, shown_name, seo_url, active_products FROM shop_categories WHERE id IN () ORDER BY name ASC 0,0001
13 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,0001
- - All Queries Time 0,2347


#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(301): 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