Add code_submissions where clause for project submissions