MySQL Debugger Results
Count SQL query Time to execute
1 SELECT id, word, lang_1 as text FROM shop_language_words 0,0007
2 SELECT local_url FROM shop_seo WHERE seo_url = ? 0,0001
3 INSERT INTO shop_logs (add_date, ip, url, user_agent) VALUES ('2023-06-10 07:44:16', '3.239.129.52', '/alpina', 'CCBot/2.0 (https://commoncrawl.org/faq/)') 0,0002
4 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,0001
5 SELECT * FROM `shop_languages` WHERE id = ? 0,0001
6 SELECT `id` as `value`, `t` as `title` FROM `fm_brands` ORDER by `value` ASC 0,0011
7 SELECT `id` as `value`, `t` as `title` FROM `fm_brands` ORDER by `value` ASC 0,001
8 SELECT `id` as `value`, `name` as `title` FROM `shop_properties` ORDER by `value` ASC 0,0002
9 SELECT * FROM `fm_brands` WHERE id = ? 0,0001
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_categories AS c LEFT JOIN shop_product_categories AS pc ON c.id = pc.category_id LEFT JOIN shop_products AS p ON pc.product_id = p.id WHERE p.active = 1 AND c.parent_id != 0 AND p.brand_id = '141' GROUP BY c.id ORDER BY sortorder ASC, name ASC 0,0004
11 SELECT parent_id FROM shop_categories WHERE id = '470' 0,0001
12 SELECT parent_id FROM shop_categories WHERE id = '471' 0,0001
13 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,0006
14 SELECT id, parent_id, name, active, shown_name, seo_url, active_products FROM shop_categories WHERE id IN () ORDER BY name ASC 0,0001
15 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,005


#0 /home/mashini/public_html/app/system/Database.class.php(503): Registry::get('lang')
#1 /home/mashini/public_html/app/system/Database.class.php(129): Database->onDbError('SELECT id, pare...', 'SQLSTATE[42000]...')
#2 /home/mashini/public_html/app/modules/Store/models/Search.model.php(279): Database->fetchAll('SELECT id, pare...')
#3 /home/mashini/public_html/app/modules/Store/front/Brands.controller.php(15): Search->getRemainingCategories(true)
#4 /home/mashini/public_html/app/system/Controller.class.php(209): BrandsController->indexAction()
#5 /home/mashini/public_html/index.php(106): Controller->Start()
#6 {main}

'lang' is not set in the Registry