SQLSTATE[42703]: Undefined column: 7 ERROR: column "type" does not exist LINE 1: ...T * FROM general_stats WHERE gallery_id=42037 AND type=0 LIM... ^
#0 [internal function]: PDO->query('SELECT * FROM g...')
#1 /home/dbstorage/sites2/sites/paulsmatures.com/app/models/GalleriesModel.php(65): Phalcon\Db\Adapter\Pdo->query('SELECT * FROM g...')
#2 /home/dbstorage/sites2/sites/paulsmatures.com/app/models/GalleriesModel.php(839): Models\GalleriesModel->getViewsClicks(42037)
#3 /home/dbstorage/sites2/sites/paulsmatures.com/app/controllers/GalleryController.php(159): Models\GalleriesModel->getGalleries('us', NULL, '17141,17138,173...', 0, 50, false, 7, false, false, 1, '40805', false, false)
#4 /home/dbstorage/sites2/sites/paulsmatures.com/app/controllers/GalleryController.php(81): GalleryController->relatedAction('40805', 1, 0, 0)
#5 [internal function]: GalleryController->indexAction('and-the-story-a...', '40805')
#6 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(GalleryController), 'indexAction', Array)
#7 [internal function]: Phalcon\Dispatcher->dispatch()
#8 /home/dbstorage/sites2/sites/paulsmatures.com/index.php(70): Phalcon\Mvc\Application->handle()
#9 {main}