How do I combine InWhere with andWhere in a query?
$rights = array('view_cat');
$permissions = \user\UserPermission::query()
->inWhere('permission', $rights)
->andWhere('user_id = :user_id:')
->bind(array('user_id' => 1))
->execute();
Results in:
Invalid parameter number: number of bound variables does not match number of tokens