Syntax error, unexpected token ), near to ') AND (Product.id <> ) ORDER BY RAND() LIMIT :APL0:', when parsing: SELECT [Product].* FROM [Product] JOIN [Productcategory] WHERE (Productcategory.category_id IN ()) AND (Product.id <> ) ORDER BY RAND() LIMIT :APL0: (148)#0 [internal function]: Phalcon\Mvc\Model\Query->parse()
#1 [internal function]: Phalcon\Mvc\Model\Query->execute()
#2 [internal function]: Phalcon\Mvc\Model::find(Array)
#3 /home/damsazki/public_html/app/controllers/ProductController.php(56): Phalcon\Mvc\Model\Criteria->execute()
#4 [internal function]: ProductController->indexAction('\xD9\x81\xD8\xB1-\xDA\xA9\xD8\xA7\xD9\x85\xD8\xA8\xDB\x8C...', '165')
#5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(ProductController), 'indexAction', Array)
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /home/damsazki/public_html/public/index.php(221): Phalcon\Mvc\Application->handle()
#8 {main}