Notice: Trying to get property 'id' of non-object in /home/aventato/public_html/app/controllers/CategoryController.php on line 31
Syntax error, unexpected token ORDER, near to ' BY created', when parsing: SELECT [Gramano\Models\Product].* FROM [Gramano\Models\Product] WHERE status = 1 AND categoryid = ORDER BY created (115)
#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 /home/aventato/public_html/app/models/Product.php(172): Phalcon\Mvc\Model::find(Array)
#3 /home/aventato/public_html/app/controllers/CategoryController.php(32): Gramano\Models\Product::find(Array)
#4 [internal function]: Gramano\Controllers\CategoryController->indexAction('mask', '14')
#5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Gramano\Controllers\CategoryController), 'indexAction', Array)
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /home/aventato/public_html/public/index.php(41): Phalcon\Mvc\Application->handle()
#8 {main}