thd->lex->derived_tables should be zero(it may be changed if we open a view)
Attach a file by drag & drop or click to upload