You need to modify the contents of the getData() and getData_raw() methods in your version of 'std.table.class.inc' so that the lines containing
$account_id_string = "rdcaccount_id='1'";
- and -
$account_id_string = "rdcaccount_id IN ('1', '$account_id')";
are changed to include the table name, as in:
$account_id_string = "$this->tablename.rdcaccount_id='1'";
- and -
$account_id_string = "$this->tablename.rdcaccount_id IN ('1', '$account_id')";
Let me know if this solves your problem.