Hotfix for SQL error.
Merge pull request #37 from jhorbulyk/Jacob-FixBug

Hotfix for SQL error.