Date : 17-07-21 17:28:45
ERROR!
Exception code: 1064
Exception message:  
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND scbd_discount > 0
			 group by scbd.scbd_quantity,scbd_discount' at line 16
Thrown by: '/home/comfortwls/public_html/site/lib/dbcontroller/DbMysql.class.php' on line: 185
Stack trace: #0 /home/comfortwls/public_html/site/lib/dbcontroller/DbMysql.class.php(62): DbMysql->throwMysqlException()
#1 /home/comfortwls/public_html/site/lib/dbcontroller/DbControl.class.php(104): DbMysql->query('SELECT \n\t\t\t\t\tsc...')
#2 /home/comfortwls/public_html/site/lib/dbcontroller/DbControl.class.php(219): DbControl->initiate()
#3 /home/comfortwls/public_html/site/Model/comfortsoapserver.php(5438): DbControl->GetAll('SELECT \n\t\t\t\t\tsc...')
#4 /home/comfortwls/public_html/site/Model/ComfortData.cls.php(121): getProdVolumeDiscount('2916', NULL, NULL)
#5 /home/comfortwls/public_html/site/page.php(745): ComfortData->getProdVolumeDiscount('2916', NULL, NULL)
#6 {main}

Client script: /site/page.php