How to use innerjoin rawquery in yii2

$post = booking::find()
->join(‘inner join’,‘user’,‘user.id=booking.User’);
return $this->render(‘booking’,[‘posts’=>$post]);

Is this ok?

Looks ok. There is also shorthand method innerJoin if you want to use that.