fixed query construction bug in getQuestion.php