Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND p.active = 1 order by popular desc limit 0, 30' at line 4 ) Array ( [0] => Array ( [file] => /var/www/u0721591/data/www/ofgal.ru/models/Product.php [line] => 289 [function] => query [class] => DB [type] => :: [args] => Array ( [0] => SELECT p.*, cat.alias, cat.full_alias, cat.category_id FROM product as p LEFT JOIN catalog cat ON (p.catalog_id = cat.id) WHERE catalog_id in () AND p.active = 1 order by popular desc limit 0, 30 ) ) [1] => Array ( [file] => /var/www/u0721591/data/www/ofgal.ru/controllers/CatalogController.php [line] => 498 [function] => getItemsProdCat [class] => Product [type] => :: [args] => Array ( [0] => [1] => 673 ) ) [2] => Array ( [file] => /var/www/u0721591/data/www/ofgal.ru/controllers/CatalogController.php [line] => 300 [function] => getSubCategory [class] => CatalogController [object] => CatalogController Object ( [content:protected] => [title:protected] => [module:protected] => catalog [module_name:protected] => Каталог [page_size:protected] => 32 [redirect] => Array ( [kabinety_rukovoditelej] => /catalog/mebel_dlya_ofisa/kabinetyi_rukovoditeley/ [kresla_dlya_sotrudnikov] => /catalog/mebel_dlya_ofisa/ofisnyie_kresla_stulya/ [kresla_rukovoditelej] => /catalog/mebel_dlya_ofisa/ofisnyie_kresla_stulya/ [myagkaya_] => /catalog/mebel_dlya_ofisa/ [operativnaya_mebel] => /catalog/mebel_dlya_ofisa/mebel_dlya_personala/ [stulya_dlya_posetitelej] => /catalog/mebel_dlya_ofisa/ofisnyie_kresla_stulya/ [mebel_dlya_barov_i_restoranov] => /catalog/mebel_dlya_restoranov_i_gostinits/divanyi_kresla/ ) ) [type] => -> [args] => Array ( [0] => Array ( [id] => 673 [parent_id] => 672 [level] => 2 [category_id] => 50 [name] => Bend [sort] => 0 [alias] => bend [full_alias] => /catalog/mebel_dlya_ofisa/stolyi_transformeryi/bend [cat_accessuar] => [active] => 1 [show_in_menu] => 1 [annotation] => [description] => [h1] => [meta_title] => [meta_keywords] => [meta_description] => [market_category] => [img] => /files/catalog/categories/.jpg [img_small] => [search_words] => [owner] => ofgal2 [prefix] => 0 [categories] => Catalog Object ( [firstItems] => 4 [prefix] => /catalog/ [tree:protected] => [storage:ArrayObject:private] => Array ( ) ) ) ) ) [3] => Array ( [file] => /var/www/u0721591/data/www/ofgal.ru/index.php [line] => 35 [function] => getCategory [class] => CatalogController [object] => CatalogController Object ( [content:protected] => [title:protected] => [module:protected] => catalog [module_name:protected] => Каталог [page_size:protected] => 32 [redirect] => Array ( [kabinety_rukovoditelej] => /catalog/mebel_dlya_ofisa/kabinetyi_rukovoditeley/ [kresla_dlya_sotrudnikov] => /catalog/mebel_dlya_ofisa/ofisnyie_kresla_stulya/ [kresla_rukovoditelej] => /catalog/mebel_dlya_ofisa/ofisnyie_kresla_stulya/ [myagkaya_] => /catalog/mebel_dlya_ofisa/ [operativnaya_mebel] => /catalog/mebel_dlya_ofisa/mebel_dlya_personala/ [stulya_dlya_posetitelej] => /catalog/mebel_dlya_ofisa/ofisnyie_kresla_stulya/ [mebel_dlya_barov_i_restoranov] => /catalog/mebel_dlya_restoranov_i_gostinits/divanyi_kresla/ ) ) [type] => -> [args] => Array ( [0] => mebel_dlya_ofisa/stolyi_transformeryi/bend/ ) ) )