vincent_sels proposed fix

Needs regression testing on calls to version_get_project_where_clause()