Made "where" non-mandatory if there are no tables involved.