deleteAll applying scope criteria not working correctly

Hey!
So, i know that by design, Yii’s deleteAll() does not take scopes by design, and while i found a “workaround” (Using updateAll and deleteAll with scopes | Wiki | Yii PHP Framework), its still not behaving correctly.
Basically, i have a scope which refers a column (in this case, user_idx) in a table named tbl_clients, so, i call it via a scope funcion to look at clients.user_idx, however, when applying that to the workaround, it tries to look for a column named clients.user_idx in my main table, which is, incorrect.

How can i make it so that workaround correctly applies the scope? Or is there any way to reach the same result without using scopes?

The error in question Column not found: 1054 Unknown column 'client.user_idx' in 'where clause'. The SQL statement executed was: DELETE FROM tbl_rules_cash_relation WHERE (client.user_idx=:user_distributor_idx) AND (rule_idx=:rule_idx)

The code:

In Controller file: 
MyModel:model()->user(Yii::app()->user->idx)->rule($rule_idx)->deleteAllWithinScope();

In Model file:
public function user_client($client_idx) {
        $this->getDbCriteria()->mergeWith(array(
            'with' => array('store', 'store.client'),
            'condition' => 'client.client_idx=:user_client_idx',
            'params' => array(':user_client_idx'=> $client_idx)
        ));
        return $this;
    }

The deleteAllWithinScope() function does the same as the wiki code.