update get_context_instance

Change to context_system::instance()
Update get_context_instance

Change to context_system::instance()
Update Mysql Statement for distinct course id

Remove error message driven from join
Update Version