Notice: Undefined index: random in /www/network-4/app/class/Controller.php on line 147

Fatal error: Uncaught [42000] - 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 '' at line 1 trace: #0 /www/network-4/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php(455): RedBeanPHP\Driver\RPDO->runQuery('SELECT * FROM `...', Array) #1 /www/network-4/vendor/gabordemooij/redbean/RedBeanPHP/Adapter/DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT * FROM `...', Array) #2 /www/network-4/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(164): RedBeanPHP\Adapter\DBAdapter->get('SELECT * FROM `...', Array) #3 /www/network-4/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(1047): RedBeanPHP\Facade::query('get', 'SELECT * FROM `...', Array) #4 /www/network-4/app/class/Controller.php(150): RedBeanPHP\Facade::getAll('SELECT * FROM `...') #5 /www/network-4/app/class/Controller.php(104): Controller->getRelatedLandings(Array) #6 /www/network-4/app/class/Controller.php(335): Con in /www/network-4/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php on line 188