All works well except for the fact that somehow the query is affecting WordPress because when i click add new project instead of an empty field for the title like you would normally get it is populated instead with the title of the first CLIENT. I thought that by adding wp_reset_postdata() that it would solve the problem but it didn't.