Minor - making a query readable!
Fixing query. see BT#7311
Merge branch '1.9.x' of ssh://github.com/chamilo/chamilo-lms into chamilo19