SQLSTATE[42000]: Syntax error or access violation: 1064 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 `catalog_product_entity`.`type_id` ='simple'' at line 9
#0 [internal function]: PDOStatement->execute()
#1 [internal function]: Phalcon\Db\Adapter\Pdo->executePrepared(Object(PDOStatement), Array, NULL)
#2 /srv/htdocs/ambiendo/apps/catalog/app/repositories/BaseRepository.php(89): Phalcon\Db\Adapter\Pdo->query('SELECT \r\n ...', Array)
#3 /srv/htdocs/ambiendo/apps/catalog/app/repositories/AmbItemsStockRepository.php(58): Ambiendo\Repositories\BaseRepository->fetchMultiple('SELECT \r\n ...', Array, 'id')
#4 /srv/htdocs/ambiendo/apps/catalog/app/services/warehouse/WarehouseService.php(98): Ambiendo\Repositories\AmbItemsStockRepository->getStockBySkus(Array)
#5 /srv/htdocs/ambiendo/apps/catalog/app/services/catalog/ProductListService.php(314): Ambiendo\Services\Warehouse\WarehouseService->getProductsWarehouse(Array, Array)
#6 /srv/htdocs/ambiendo/apps/catalog/app/services/catalog/ProductListService.php(168): Ambiendo\Services\Catalog\ProductListService->decorateProducts(Array, Object(Phalcon\Http\Request))
#7 /srv/htdocs/ambiendo/apps/catalog/app/controllers/catalog/ListController.php(66): Ambiendo\Services\Catalog\ProductListService->getProductListByCategory('671', Object(Phalcon\Http\Request))
#8 [internal function]: Ambiendo\Controllers\Catalog\ListController->looksAction()
#9 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Ambiendo\Controllers\Catalog\ListController), 'looksAction', Array)
#10 [internal function]: Phalcon\Dispatcher->dispatch()
#11 /srv/htdocs/ambiendo/apps/catalog/public/index.php(18): Phalcon\Mvc\Application->handle()
#12 {main}