Notice: Undefined offset: 0 in /var/www/html/instance/live/openout/site/controllers/amend/open.php on line 41

Notice: Undefined offset: 0 in /var/www/html/instance/live/openout/site/controllers/amend/open.php on line 42

Notice: Undefined offset: 0 in /var/www/html/instance/live/openout/site/libs_var/model_var.php on line 214

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 ') ORDER BY r.id DESC' at line 5 trace: #0 /var/www/html/instance/live/openout/site/libs_ext/rb.php(881): RedBeanPHP\Driver\RPDO->runQuery(' SELECT r.*, u....', Array) #1 /var/www/html/instance/live/openout/site/libs_ext/rb.php(3426): RedBeanPHP\Driver\RPDO->GetAll(' SELECT r.*, u....', Array) #2 /var/www/html/instance/live/openout/site/libs_ext/rb.php(10259): RedBeanPHP\Adapter\DBAdapter->get(' SELECT r.*, u....', Array) #3 /var/www/html/instance/live/openout/site/libs_ext/rb.php(10895): RedBeanPHP\Facade::query('get', ' SELECT r.*, u....', Array) #4 /var/www/html/instance/live/openout/site/libs_var/model_var.php(229): RedBeanPHP\Facade::getAll(' SELECT r.*, u....') #5 /var/www/html/instance/live/openout/site/controllers/amend/open.php(57): Model_Var->getAllReviewFor('387') #6 / in /var/www/html/instance/live/openout/site/libs_ext/rb.php on line 719