Integrity constraint violation (What happened ?)

Did anyone know what happen?
Thank You

If mark is available in two columns and you join them, you have to explicitly define the where condition what table you like to set the condition for.

where([‘my_table_1.mark’ => …])

for example.

Also for selecting the table fields.