i\'m fairly new to programming. I\'ve tried MySQL before, but now it\'s my first time using SQLite in a python flask website. So maybe I\'m using MySQL syntax instead o
I had the same problem and I fixed it by closing my connection after every call:
results = session.query(something, something).all() session.close()