add missing semicolon to SQL query