Unknown column 'fg' in 'where clause'
select count(*) as total from ***_ecms_max where classid in (591,592,596,602,607,626,635,651,684,686,688,689,692,696,699,700,721,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1700,1701,1702,1703,1704,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1717,1718,1719,1720,1721,1722,1724,1725,1726,1727,1728,1730,1731,1732,1733,1734,1735,1737,1738,1739,1740,1742,1743,1744,1745,1746,1747,1748,1750,1751,1752,1753,1754,1755,1756,1757,1758,1760,1761,1762,1763,1765,1767,1768,1769,1770,1772,1773,1774,1775,1776,1777,1778,1779,1781,1782,1783,1784) and isgood>0 and (fg like '%xzs%')