Fixed SQL query for public view
Merge pull request #381 from YaleSTC/324_public_view

Fixed SQL query for public view. Closes #324.