Updated SQL query
Merge pull request #380 from Lerogero/master

Updated SQL query