1054 - Unknown column 'quiz' in 'where clause'

Select quiz_child_id,quiz_master_id,quiz_question_1,quiz_answer_1_1,quiz_answer_1_2,quiz_answer_1_3,quiz_answer_1_4,quiz_answer_1_5,quiz_answer_1_6,quiz_answer_correct_1,quiz_image_1_1,quiz_image_1_2,quiz_image_1_3,quiz_question_2,quiz_answer_2_1,quiz_answer_2_2,quiz_answer_2_3,quiz_answer_2_4,quiz_answer_2_5,quiz_answer_2_6,quiz_answer_correct_2,quiz_image_2_1,quiz_image_2_2,quiz_image_2_3,quiz_question_3,quiz_answer_3_1,quiz_answer_3_2,quiz_answer_3_3,quiz_answer_3_4,quiz_answer_3_5,quiz_answer_3_6,quiz_answer_correct_3,quiz_image_3_1,quiz_image_3_2,quiz_image_3_3,quiz_question_4,quiz_answer_4_1,quiz_answer_4_2,quiz_answer_4_3,quiz_answer_4_4,quiz_answer_4_5,quiz_answer_4_6,quiz_answer_correct_4,quiz_image_4_1,quiz_image_4_2,quiz_image_4_3,quiz_question_5,quiz_answer_5_1,quiz_answer_5_2,quiz_answer_5_3,quiz_answer_5_4,quiz_answer_5_5,quiz_answer_5_6,quiz_answer_correct_5,quiz_image_5_1,quiz_image_5_2,quiz_image_5_3,quiz_question_6,quiz_answer_6_1,quiz_answer_6_2,quiz_answer_6_3,quiz_answer_6_4,quiz_answer_6_5,quiz_answer_6_6,quiz_answer_correct_6,quiz_image_6_1,quiz_image_6_2,quiz_image_6_3,quiz_question_7,quiz_answer_7_1,quiz_answer_7_2,quiz_answer_7_3,quiz_answer_7_4,quiz_answer_7_5,quiz_answer_7_6,quiz_answer_correct_7,quiz_image_7_1,quiz_image_7_2,quiz_image_7_3,quiz_question_8,quiz_answer_8_1,quiz_answer_8_2,quiz_answer_8_3,quiz_answer_8_4,quiz_answer_8_5,quiz_answer_8_6,quiz_answer_correct_8,quiz_image_8_1,quiz_image_8_2,quiz_image_8_3,quiz_question_9,quiz_answer_9_1,quiz_answer_9_2,quiz_answer_9_3,quiz_answer_9_4,quiz_answer_9_5,quiz_answer_9_6,quiz_answer_correct_9,quiz_image_9_1,quiz_image_9_2,quiz_image_9_3,quiz_question_10,quiz_answer_10_1,quiz_answer_10_2,quiz_answer_10_3,quiz_answer_10_4,quiz_answer_10_5,quiz_answer_10_6,quiz_answer_correct_10,quiz_image_10_1,quiz_image_10_2,quiz_image_10_3,active from quiz_child_master where quiz_master_id=quiz and active='Y' order by quiz_child_id ASC LIMIT 0,1

Error