For postgres the $1 syntax is correct however there are limitations in the syntax (per the second post) where legal syntax is disallowed by the Bubble’s SQL DB connector.
This is the reason we created our SQL Pro plugin to support standard SQL syntax.