[CM] drag and drop table to query editor, generated SQL has syntax error when the table have no any colums