Modified how select params are passed into select method for query