fix ListForSubmitter DAO to work with Oracle

The usual very forgiving MySQL syntax that breaks Oracle. Btw, in principle this query can return multiple workflow name, priority combinations for the same workflow name, If this is not desired, the query should be changed to return MIN(wmbs_workflow.priority) or something like it.