Fixing sql queries post adodb upgrade (Bug #1401324)

We can't pass anything other than an array or null to
get_recordset_sql()

Change-Id: I62717401d3f4960f0e5a5fc76bf8156b0853b9fc
Signed-off-by: Robert Lyon <robertl@catalyst.net.nz>