Fixed a bug - caused the SQL not to load (a comma too many)