MySQL Debugger Results
Count SQL query Time to execute
1 SELECT code FROM shop_languages WHERE id = ? 0.007
2 SELECT id, word, lang_1 as text FROM shop_language_words 0.0094
3 SELECT * FROM currency 0.0055
4 SELECT * FROM shop_redirects WHERE old_url = ? 0.0069
5 SELECT id FROM fm_brands WHERE seo_url IN('kovaco','turqpower','airtec','turchi','mac3','giant','sanica','unimec','danrec','tarwis','jomar','flatpack-container','sprint') 0.0036
6 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.005
7 SELECT * FROM `shop_languages` WHERE id = ? 0.01
8 SELECT `id` as `value`, `name` as `title` FROM `shop_properties` ORDER by `value` ASC 0.0071
9 SELECT `id` as `value`, `name` as `title` FROM `shop_properties` ORDER by `value` ASC 0.0087
10 SELECT COUNT(*) AS count FROM shop_products WHERE is_available = 1 AND active = 1 AND archive = 0 0.0136
11 SELECT COUNT(*) AS count FROM shop_products WHERE archive = 1 0.0152
12 SELECT `id` as `value`, `t` as `title` FROM `fm_brands` ORDER by `value` ASC 0.201
13 SELECT * FROM `shop_categories` WHERE id = ? 0.0145
14 SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = ? ORDER BY name ASC 0.0163
15 SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 653 ORDER BY name ASC 0.7429
16 SELECT * FROM shop_categories WHERE ((active = 1 AND template != 1) OR (active_products > 0 AND template = 1)) AND parent_id = 2323 ORDER BY name ASC 0.0368
17 SQLSTATE[HY000]: General error: 2006 MySQL server has gone away 0.0368
- - All Queries Time 1.1403


#0 /var/www/bautrax.bg/www/app/system/Database.class.php(536): Registry::get()
#1 /var/www/bautrax.bg/www/app/system/Database.class.php(135): Database->onDbError()
#2 /var/www/bautrax.bg/www/app/modules/Store/models/Categories.model.php(248): Database->fetchAll()
#3 /var/www/bautrax.bg/www/app/modules/Store/models/Search.model.php(77): Categories->getCategoriesWithParentBySort()
#4 /var/www/bautrax.bg/www/app/modules/Store/front/Categories.controller.php(28): Search->load()
#5 /var/www/bautrax.bg/www/app/system/Controller.class.php(257): CategoriesController->indexAction()
#6 /var/www/bautrax.bg/www/index.php(124): Controller->Start()
#7 {main}

'lang' is not set in the Registry