How to get products with the same custom attribute like ean code

It looks like you want to list products with post_type=product etc.. AND have the same ean code. Therefore, in your place i would try with the line
'relation' => 'OR'
changed to
'relation' => 'AND'

Regards,

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)