Notice: Undefined variable: user_id in /home/geofarmasi/public_html/application/controllers/CartController.php on line 32

Fatal error: Uncaught PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near ")" LINE 1: ...confirmed FROM tbl_user_agreement where user_id = ),0) as co... ^ in /home/geofarmasi/public_html/application/core/Model.php:114 Stack trace: #0 /home/geofarmasi/public_html/application/core/Model.php(114): PDOStatement->execute() #1 /home/geofarmasi/public_html/application/models/Helper.php(30): application\core\Model->queryFirst('select COALESCE...') #2 /home/geofarmasi/public_html/application/controllers/CartController.php(32): application\models\Helper->getUserAgreement(NULL) #3 /home/geofarmasi/public_html/application/core/Router.php(143): application\controllers\CartController->indexAction() #4 /home/geofarmasi/public_html/index.php(47): application\core\Router->run() #5 {main} thrown in /home/geofarmasi/public_html/application/core/Model.php on line 114