This is a php project, btw. I found this Stackoverflow
I also get this error when I run the server action with the custom query, so with LIMIT 5 instead of FETCH x rows only.
This custom query does not give an error in the UI.
Server actions that I created earlier on tis project that have queries on the same managed database instance and same credentials (with a different db name) give no errors. Haven’t tried chaning those queries, because I don’t want to mess up something that is working right now.
EDIT: I noticed that my credentials in Workflows>globals>Database connections where not the same. So I changed those. This did fix the error in executing the server action. But I still get the SQL syntax error in the UI.
The parser in Wappler generates SQL according to the ISO standard and not database specific. We will improve this in an upcoming Wappler update to generate correct SQL based on your database connection.