There is no way to create a table based on the columns of a query. The "CREATE TABLE mytable_copy LIKE MyTable" syntax only works for tables, views, or nicknames that are in the catalog.
Are you trying to create a table that has the same columns as the query, or are you trying to create a MQT?
Andy