Code:
if($ut=='Admin'){ // if the user is Admin the query should not have a filter
$queryCustomer = Yii::app()->db->createCommand()
->select('cust.mobile_number as customer,sum(trans.price) as sales,trans.datetime')
->from('customers cust')