I'm trying to debug below code:
$perishables = db_select('userpoints_txn', 'up_txn')
->fields('up_txn', array('txn_id', 'uid', 'points', 'remainder', 'time_stamp', 'tid', 'operation', 'description'))
->condition('status', 0, '=')
->condition('expired', 0, '=')
->condition('expirydate', 0, '!=')
->condition('expirydate', REQUEST_TIME, '<')
->execute();
watchdog('userpoints', 'perishables->remainder %perrr', array('%perrr' =>$perishables), WATCHDOG_DEBUG);
Can anyone help me how to get $perishables in the report log files?