You’re not using OrmLite’s Typed APIs here, you’re executing raw SQL which OrmLite executes as-is.
Please do some self-research looking into how it’s done with SQL in the RDBMS you’re using as you’re going to need to do this a lot during normal app development when using APIs that execute raw SQL like this. If you’re not comfortable learning SQL, the only other way around it is using OrmLite’s Typed APIs in your custom script methods, as there’s no existing Types you’ll need to create OrmLite data models in C# which you can populate from a #Script Object Dictionary using the FromObjectDictionary Reflection Utils.