fixed SQL syntac for get m_attendance