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

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 'order by qestd.`id` DESC LIMIT 1' at line 1 in /home/b1u3p3n2019dec/public_html/Model/Dashboard/Questionpaper.php:201 Stack trace: #0 /home/b1u3p3n2019dec/public_html/Model/Dashboard/Questionpaper.php(201): PDO->query('SELECT distinct...') #1 /home/b1u3p3n2019dec/public_html/Views/Dashboard/view_score.php(27): Model\Dashboard\Questionpaper->getAllScores() #2 {main} thrown in /home/b1u3p3n2019dec/public_html/Model/Dashboard/Questionpaper.php on line 201