Notice: Undefined index: memberId in /home/b1u3p3n2019dec/public_html/Model/Dashboard/Questionpaper.php on line 190

Fatal error: Uncaught PDOException: 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 'AND qestd.`payment_status`= 'Success' order by qestd.`id` DESC' at line 1 in /home/b1u3p3n2019dec/public_html/Model/Dashboard/Questionpaper.php:193 Stack trace: #0 /home/b1u3p3n2019dec/public_html/Model/Dashboard/Questionpaper.php(193): PDO->query('SELECT qestd.*,...') #1 /home/b1u3p3n2019dec/public_html/Views/Dashboard/upload_answers.php(27): Model\Dashboard\Questionpaper->getAllpaper_downloads() #2 {main} thrown in /home/b1u3p3n2019dec/public_html/Model/Dashboard/Questionpaper.php on line 193