Notice: Undefined index: BID3 in /var/www/stud.kz/app/controllers/FavoriteController.php on line 16
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and langID=2 order by f.ID desc limit 0, 1' at line 3
File=/var/www/stud.kz/app/controllers/FavoriteController.php
Line=22

#0 [internal function]: PDO->query('SELECT referatI...')
#1 [internal function]: Phalcon\Db\Adapter\Pdo->query('SELECT referatI...', NULL, NULL)
#2 /var/www/stud.kz/app/controllers/FavoriteController.php(22): Phalcon\Db\Adapter->fetchAll('SELECT referatI...')
#3 [internal function]: Controllers\FavoriteController->listAction('ru')
#4 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(Controllers\FavoriteController), 'listAction', Array)
#5 [internal function]: Phalcon\Dispatcher->_dispatch()
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /var/www/stud.kz/public/index.php(29): Phalcon\Mvc\Application->handle()
#8 {main}