update_used_tables() should be called after handling derived tables in any case.
Attach a file by drag & drop or click to upload