Fixed an SQL query error
Merge pull request #4 from ukdtom/tommy-work

Fixed an SQL query error