Replace pointless and non-functioning prepared statement with call to sqlSelectMany