I’m not clear what exactly you are trying to do. I like @IWC put project related tasks into the project note, and then use tasks queries to show in my daily note those which are due or scheduled for a particular day. I also now use a status field on the project to show in my daily note which projects need to be moved forward this week.
But it sounds like you are trying to go the other direction, i.e. put tasks into daily notes and then query them in a particular project? To do that you would need to use a tag for project in the title of the task and use that in the query in the project note.