Fix error in locations sql statement
Merge pull request #511 from timschofield/develop

Fix error in locations sql statement