Fix more than one row error.
Merge pull request #675 from UM-USElab/subquery-error

Fix more than one row error.