$where="( IFNULL(projectno,'".session("user")['projectno']."') = '".session("user")['projectno']."' OR projectno='' )";