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 points.name != "" AND stock_table.stock >' at line 8 ) Array ( [0] => Array ( [file] => /mnt/data/www/kolobox/models/GoodsStock.php [line] => 46 [function] => query [class] => DB [type] => :: [args] => Array ( [0] => SELECT stock_table.code, stock_table.stock, points.id, points.name, points.realcity, points.message, points.vneshniy, points.is_centre, points.is_delivery FROM goods_stock AS stock_table INNER JOIN point_warehouses ON point_warehouses.warehouse_id = stock_table.warehouse_id INNER JOIN warehouses ON warehouses.id = point_warehouses.warehouse_id INNER JOIN tochki AS points on (points.id = point_warehouses.point_id) WHERE stock_table.code IN () AND points.name != "" AND stock_table.stock > 0 AND warehouses.active = 1 AND points.active = 1 ORDER BY points.priority, points.name ) ) [1] => Array ( [file] => /mnt/data/www/kolobox/include/GoodsHelper.php [line] => 21 [function] => getByCode [class] => GoodsStock [type] => :: [args] => Array ( [0] => Array ( [0] => ) ) ) [2] => Array ( [file] => /mnt/data/www/kolobox/controllers/AjaxController.php [line] => 1208 [function] => goodsHasManyStocks [class] => GoodsHelper [type] => :: [args] => Array ( [0] => ) ) [3] => Array ( [file] => /mnt/data/www/kolobox/controllers/AjaxController.php [line] => 101 [function] => getShowMoreAKBauto [class] => AjaxController [object] => AjaxController Object ( [ajax:AjaxController:private] => [action:AjaxController:private] => getShowMoreAKBauto [last_error] => [success_msg] => [modules:AjaxController:private] => Array ( [catalog] => Array ( [category] => catalog_parents [item] => catalog_children [moto] => catalog_moto [tmarks] => tmarks ) [catalog_goods] => Array ( [item] => catalog_goods [category_goods] => goods_categories ) [files] => Array ( [category] => files_parents [item] => files_children ) [gallery] => Array ( [category] => gallery_parents [item] => gallery_children ) [info] => Array ( [category] => articles_parents [item] => articles_children ) [users] => Array ( [category] => users_parents [item] => users_list ) [content] => Array ( [category] => content_children ) [messages] => Array ( [category] => messages ) [actions] => Array ( [item] => actions ) [advertising] => Array ( [item] => advertising ) [promo] => Array ( [item] => promo ) [vitrin] => Array ( [item] => vitrin ) [complaint] => Array ( [item] => complaint ) [points] => Array ( [category] => city [item] => tochki ) [warehouses] => Array ( [item] => warehouses ) [selectionPresets] => Array ( [item] => selection_sort_presets ) [selection] => Array ( [item] => selection_sorts ) [services] => Array ( [item] => services ) [tire_fitting_shed] => Array ( [item] => tire_fitting_shed ) [news] => Array ( [item] => news ) [polls] => Array ( [item] => poll ) ) [category:AjaxController:private] => Array ( [2] => Шины [100] => Мотошины [200] => ATV шины [3] => Диски ) ) [type] => -> [args] => Array ( ) ) [4] => Array ( [file] => /mnt/data/www/kolobox/index.php [line] => 38 [function] => process [class] => AjaxController [object] => AjaxController Object ( [ajax:AjaxController:private] => [action:AjaxController:private] => getShowMoreAKBauto [last_error] => [success_msg] => [modules:AjaxController:private] => Array ( [catalog] => Array ( [category] => catalog_parents [item] => catalog_children [moto] => catalog_moto [tmarks] => tmarks ) [catalog_goods] => Array ( [item] => catalog_goods [category_goods] => goods_categories ) [files] => Array ( [category] => files_parents [item] => files_children ) [gallery] => Array ( [category] => gallery_parents [item] => gallery_children ) [info] => Array ( [category] => articles_parents [item] => articles_children ) [users] => Array ( [category] => users_parents [item] => users_list ) [content] => Array ( [category] => content_children ) [messages] => Array ( [category] => messages ) [actions] => Array ( [item] => actions ) [advertising] => Array ( [item] => advertising ) [promo] => Array ( [item] => promo ) [vitrin] => Array ( [item] => vitrin ) [complaint] => Array ( [item] => complaint ) [points] => Array ( [category] => city [item] => tochki ) [warehouses] => Array ( [item] => warehouses ) [selectionPresets] => Array ( [item] => selection_sort_presets ) [selection] => Array ( [item] => selection_sorts ) [services] => Array ( [item] => services ) [tire_fitting_shed] => Array ( [item] => tire_fitting_shed ) [news] => Array ( [item] => news ) [polls] => Array ( [item] => poll ) ) [category:AjaxController:private] => Array ( [2] => Шины [100] => Мотошины [200] => ATV шины [3] => Диски ) ) [type] => -> [args] => Array ( [0] => getShowMoreAKBauto ) ) )