[23-Apr-2018 04:36:27 UTC] PHP Fatal error: 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 :: SELECT SUM(reward_points) FROM reward_status_track WHERE status=0 AND (); in E:\wamp\www\zctest\includes\classes\db\mysql\query_factory.php on line 110 [23-Apr-2018 04:36:27 UTC] PHP Stack trace: [23-Apr-2018 04:36:27 UTC] PHP 1. {main}() E:\wamp\www\zctest\admin88\customers_reward_points.php:0 [23-Apr-2018 04:36:27 UTC] PHP 2. queryFactory->Execute() E:\wamp\www\zctest\admin88\customers_reward_points.php:116 [23-Apr-2018 04:36:27 UTC] PHP 3. queryFactory->set_error() E:\wamp\www\zctest\includes\classes\db\mysql\query_factory.php:216 [23-Apr-2018 04:36:27 UTC] PHP 4. queryFactory->show_error() E:\wamp\www\zctest\includes\classes\db\mysql\query_factory.php:96 [23-Apr-2018 04:36:27 UTC] PHP 5. trigger_error() E:\wamp\www\zctest\includes\classes\db\mysql\query_factory.php:110