Using recordset data in security assist access rules is tricky at best.
You need to make sure that the recordset code is on the page before the require_once() function to include the security assist helper file:
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
In the rule, the compare to value should be left blank