I\'m trying to set a variable to a function that selects a table from a database. It has worked all the other times I have been using the function, but now I get this error