I want to sort the column 'Name' from my table named 'People' using the SQL Order DESC referencing the column 'ReportID' in a separate table named 'Report' with the following execution:
cur.execute("""SELECT "Name" FROM People WHERE "ID" IN (SELECT "ID" FROM Report WHERE "ReportID" = ?) ORDER BY "Date" DESC""", (var,)
Instead, I get the error prompt:
sqlite3.OperationalError: no such column: Date
Any insights on what I can do to be able to call Date properly? Both tables are from the same database.