adding missing FROM clause