updating SQL SELECT QUERY.

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>
Merge branch 'origin/develop'

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>