Minor - adding db changes
Fixing SQL error when getting orphan questions see BT#6801
Minor- adding validation
Merge branch '1.9.x' of github.com:chamilo/chamilo-lms into julio6666