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='tax' AND programid IN (1670, 1671, 1672, 1719, 7852, 6276, 1674, 1720, 1676, 1677, 1678, 1679, 1680, 1681, 1682, 1683, 1684, 1685, 1686, 1687, 1688, 1689, 1690, 1691, 1692, 6276, 1693, 1702, 1702, 1705, 1706, 1707, 1708, 1709, 1710, 1711, 1712, 1713, 1772, 1714, 1718, 1719, 1720, 1721, 1721, 1722, 1723, 1724, 1725, 1726, 1727, 1728, 1729, 1730, 1731, 1733, 1733, 1734, 1735, 1736, 1737, 1738, 1739, 1740, 1741, 1742, 6281, 6280, 1746, 6285, 1747, 7803, 1757, 1758, 1759, 1760, 1761, 1762, 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1775, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783, 1784, 1784, 1785, 1786, 1787, 1788, 1789, 1790, 1791, 1792, 1792, 1793, 1793, 1846, 6193, 5873, 6288, 3421, 3422, 3423, 3424, 3425, 7873, 3428, 3429, 3430, 3430, 7874, 3431, 6290, 6275, 6277, 6278, 6283, 6286, 7877, 6289, 7874, 7879, 6290, 1763, 1784, 7061, 7062, 7062, 7801, 7802, 7805, 7817, 7816, 7815, 7813, 7814, 7812, 7811, 7810, 7809, 7808, 7807, 7806, 6274, 6273, 6272, 7819, 7818, 7826, 7825, 7823, 7820, 7827, 7828, 7830, 7833, 7834, 7837, 7838, 7841, 7842, 7845, 7846, 7849, 7824, 7822, 7821, 7829, 7831, 7832, 7835, 7836, 7839, 7840, 7843, 7844, 7847, 7848, 7850, 7851, 7850, 1674, 7852, 7853, 1740, 7855, 7854, 7855, 7856, 7857, 7858, 7859, 7861, 7862, 7863, 7860, 7864, 7867, 7870, 7865, 7869, 7866, 7868, 7871, 7872, 3429, 7875, 7876, 3421, 7878, 7880, 7885, 7888, 7887, 7886, 7883, 7881, 7882, 7884, 7889, 7895, 7894, 7896, 7892, 7893, 7891, 7890, 7909, 7908, 7910, 7912, 7912, 7911, 7913, 7914, 7913, 7914, 7915, 7916, 7918, 7917, 7917, 7918, 7919, 7922, 7922, 7921, 7921, 7920, 7920);; Unknown column 'mt_program.gmat_required' in 'field list'