fix problem with variables in from clauses, #268