I created a query. I want to join my table with students table:

```
$query->leftJoin('students', 'learners.student_id', '=', 'students.id');

```

But I don't know my table joined before or not. How should I do that?