Fix SQL when user has no projects and is not an Admin