Here is my python sqlite3 code:
# Fetch authorized users for the given device
cursor.execute(
    "SELECT users.key FROM users INNER JOIN permissions"
    "ON users.key = permissions.user_key WHERE permissions.device_id = ?",
    (device_id,),
)
authorized_users = [row[0] for row in cursor.fetchall()]

Got this errror:
   data = Device.get_authorized_users(device_id)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/artsin/Dev/prismo/app/models/device.py", line 58, in get_authorized_users
   cursor.execute(
sqlite3.OperationalError: near ".": syntax error
Why?