Table 'wwwntekch_edit.questions' doesn't exist. Your SQL query is: SELECT questions.ID, answers.ID, questions.question, answers.answer FROM questions, answers WHERE answers.questionid=questions.ID AND questions.ID=1 AND questions.quizzid=1