SQLSTATE[42703]: Undefined column: 7 ERROR: column general_stats.value does not exist LINE 3: ...ON general_stats.gallery_id = g.gallery_id AND ( (general_st... ^
#0 [internal function]: PDO->query('SELECT COUNT(DI...')
#1 /home/dbstorage/sites2/sites/paulsmatures.com/app/models/GalleriesModel.php(857): Phalcon\Db\Adapter\Pdo->query('SELECT COUNT(DI...')
#2 /home/dbstorage/sites2/sites/paulsmatures.com/app/controllers/GalleryController.php(159): Models\GalleriesModel->getGalleries('us', NULL, '17110,17138,170...', 0, 50, false, 7, false, false, 1, '809', false, false)
#3 /home/dbstorage/sites2/sites/paulsmatures.com/app/controllers/GalleryController.php(81): GalleryController->relatedAction('809', 1, 0, 0)
#4 [internal function]: GalleryController->indexAction('pair-french-lib...', '809')
#5 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(GalleryController), 'indexAction', Array)
#6 [internal function]: Phalcon\Dispatcher->dispatch()
#7 /home/dbstorage/sites2/sites/paulsmatures.com/index.php(70): Phalcon\Mvc\Application->handle()
#8 {main}