Not allowed to return a result set from a functionselect GetLastTradeDate(unix_timestamp(curdate()))