db->createCommand($sql); $data = $command->queryAll(); print_r($data); } }