Error on run query : SELECT CASE WHEN mt_school.school_name2 = '' THEN mt_school.school_name1 ELSE CONCAT(mt_school.school_name1,' - ',mt_school.school_name2) END AS school_name, mt_school.schoolid, mt_program.program_name, mt_program.programid, mt_program.intake, mt_program.duration, mt_program.duration_from, mt_program.duration_to, mt_program.gmat_required, mt_program.gmat_waiver FROM mt_school INNER JOIN mt_program ON mt_school.schoolid=mt_program.schoolid WHERE mt_program.masters_type='acct' AND programid IN (6220, 6732, 6942, 2451, 2452, 2453, 2454, 2455, 2456, 2457, 2458, 2459, 2460, 2461, 2462, 2463, 2464, 2465, 2466, 2467, 2467, 2468, 2468, 2469, 2470, 2471, 2472, 2473, 2474, 2475, 2476, 2477, 2478, 2479, 2480, 2481, 2482, 2483, 2484, 2485, 7267, 2486, 2487, 7265, 2488, 2489, 2490, 2491, 2492, 2493, 2494, 2495, 2496, 2497, 2497, 7259, 7258, 2498, 2498, 2499, 6222, 2500, 2501, 2503, 2504, 2505, 2506, 2507, 2508, 2508, 2509, 2549, 2510, 7378, 2511, 2512, 2513, 2514, 2515, 2516, 2517, 2518, 2519, 2520, 2521, 6221, 2522, 2523, 2524, 2525, 2526, 2527, 2528, 2536, 2537, 2538, 2539, 2540, 2541, 2542, 2543, 2544, 2545, 2546, 2546, 2547, 2548, 2549, 2550, 2551, 2551, 2552, 2552, 2553, 2553, 2554, 2556, 2557, 2558, 2559, 2560, 2561, 2562, 2563, 2564, 2565, 2566, 2567, 2568, 2569, 2570, 2571, 2572, 2573, 2575, 2576, 2577, 2578, 7375, 2583, 2579, 6731, 2580, 2581, 2582, 2582, 2582, 2583, 2583, 2584, 7263, 7262, 2597, 2598, 2599, 2600, 2601, 2602, 2603, 2604, 2605, 2606, 7382, 7380, 7379, 7377, 7377, 2451, 7376, 7376, 2453, 7375, 2617, 2618, 2619, 2620, 2621, 2622, 2624, 2625, 2626, 2627, 2628, 2629, 2630, 2631, 2632, 2633, 2634, 2635, 7274, 2636, 2637, 2638, 2639, 2640, 2641, 2642, 2643, 2644, 2651, 5234, 5453, 6197, 5960, 3434, 3435, 2501, 6223, 6732, 6733, 6731, 6895, 6895, 6896, 6896, 6897, 6963, 6963, 7057, 7058, 7059, 7060, 2548, 7248, 7252, 7250, 7254, 7253, 7255, 7253, 7254, 7252, 2454, 7260, 7261, 7261, 7266, 7264, 7268, 7271, 7269, 7272, 7270, 2636, 7276, 7277, 7278, 7275, 7282, 7281, 7279, 7284, 7283, 7285, 7290, 7289, 7288, 7287, 7286, 7291, 7292, 7291, 7293, 7294, 7295, 7296, 7297, 7298, 7300, 7299, 7299, 7298, 6942, 7309, 7308, 7319, 7311, 7312, 7313, 7314, 7315, 7316, 7317, 7318, 3435, 7331, 7330, 7329, 7328, 7327, 7326, 7325, 7324, 7322, 7323, 7321, 2458, 7334, 7345, 7344, 7346, 7333, 7335, 7336, 7337, 7338, 7347, 7348, 7349, 7351, 7350, 7353, 7352, 7354, 7355, 7356, 7357, 7358, 7359, 7360, 7361, 7355, 7363, 7362, 7366, 7366, 7367, 7367, 7368, 7364, 7365, 7370, 7370, 7371, 7372, 7369, 7373, 7374, 2471, 7374, 7371, 7372, 7369, 7382, 7381, 7381, 7383, 7384, 7384, 7383, 5453, 7386, 7390, 7387, 7388);; Unknown column 'mt_program.gmat_required' in 'field list'