missing comma in sql statement

fixes #1508 

@MTGap @georgehrke @Raydiation  THX