Fix for multiple results from subquery
Fix for multiple results from subquery

If the table name is the same between multiple schemas, multiple
results get returned from the subquery which causes the query to fail.

AlexZeitler/massive-js,kvnlnt/massive-js,vertiman/massive-js,keithlayne/massive-js,Sharkwald/massive-js,jesperfj/massive-js,jmealo/massive-js,dsturley/massive-js,robconery/massive-js,ludvigsen/massive-js