Notice: Trying to access array offset on value of type null in /home/vaffancool/vaffancool.com/core/init.php on line 5
Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: RedBeanPHP\RedException\SQL
Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '> 0 ORDER BY timestamp DESC LIMIT 29' at line 13
File: /home/vaffancool/vaffancool.com/lib/rb.php
Line: 693

Trace

#0 /home/vaffancool/vaffancool.com/lib/rb.php(854): RedBeanPHP\Driver\RPDO->runQuery('SELECT\n\t\t\t\t\t\t\tv...', Array)
#1 /home/vaffancool/vaffancool.com/lib/rb.php(3306): RedBeanPHP\Driver\RPDO->GetAll('SELECT\n\t\t\t\t\t\t\tv...', Array)
#2 /home/vaffancool/vaffancool.com/lib/rb.php(10060): RedBeanPHP\Adapter\DBAdapter->get('SELECT\n\t\t\t\t\t\t\tv...', Array)
#3 /home/vaffancool/vaffancool.com/lib/rb.php(10751): RedBeanPHP\Facade::query('get', 'SELECT\n\t\t\t\t\t\t\tv...', Array)
#4 /home/vaffancool/vaffancool.com/core/views.php(91): RedBeanPHP\Facade::getAll('SELECT\n\t\t\t\t\t\t\tv...')
#5 /home/vaffancool/vaffancool.com/core/functions.php(314): GetVideos('44', NULL, 29, 'rank > 0')
#6 /home/vaffancool/vaffancool.com/view/front/home.php(31): videoPopolare('44')
#7 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/View.php(278): require('/home/vaffancoo...')
#8 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/View.php(255): Slim\View->render('front/home.php', Array)
#9 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/View.php(243): Slim\View->fetch('front/home.php', NULL)
#10 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/Slim.php(757): Slim\View->display('front/home.php')
#11 /home/vaffancool/vaffancool.com/core/controller.php(4): Slim\Slim->render('front/home.php')
#12 /home/vaffancool/vaffancool.com/index.php(31): HomePage()
#13 [internal function]: {closure}()
#14 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#15 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/Slim.php(1357): Slim\Route->dispatch()
#16 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#17 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#18 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#19 /home/vaffancool/vaffancool.com/vendor/slim/slim/Slim/Slim.php(1302): Slim\Middleware\PrettyExceptions->call()
#20 /home/vaffancool/vaffancool.com/index.php(231): Slim\Slim->run()
#21 {main}