Only implicit fields use the prefix “file”. Custom fields don’t.
So, if you write WHERE issue_type = this.file.fields.issues_type why in first part you don’t use the prefix and in second part you use file.fields?
TABLE id, status
FROM #issues
WHERE issue_type = this.issue_type
SORT id ASC