Fatal error: Uncaught exception 'PDOException' with 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), TotalAmount = IFNULL(( SELECT SUM( ROUND(SellPriceExVat, 2) * Qty ' at line 2' in E:\office_common_files\classes\shop.class.php:345 Stack trace: #0 E:\office_common_files\classes\shop.class.php(345): PDO->exec('UPDATE orders S...') #1 E:\www.officestationery.co.uk\classes\ofs_shop.class.php(132): Shop->updateOrder() #2 E:\www.officestationery.co.uk\controllers\BasketController.php(504): OFS_Shop->updateOrder(NULL) #3 E:\www.officestationery.co.uk\controllers\BasketController.php(450): BasketController->updateOrder() #4 E:\www.officestationery.co.uk\controllers\BasketController.php(537): BasketController->addAction() #5 {main} thrown in E:\office_common_files\classes\shop.class.php on line 345