API docs getRecords() gives error with 'related'

Ok @jeffreystables
Let me try and paste the SQL to you which gives an error, as the error only comes sometimes with some * related tables, and not with all.

So it could be due to some data or otherwise with some configuration.
Whatever the issue is since the data is very well getting inserted into the DB, so I guess it should also get shown with DSP’s get records without giving error.

let me try and send you some simple table and data which will reproduce the issue for you.
I use PGSQL by the way. Not sure if that could be the issue.