Help SQLite error

Please see this post for how to format your flow so that it is importable. You can edit your previous post .
Also put a debug node showing what is being fed to the sql node. Set it to Show Complete Message and post a screenshot here of what you see (after convincing yourself it show what you expect of course.