mysql> select t1.name, t2.count, t3.name as black_list from hal_index as t1 left join xtr_index as t2 using (name) left join xla_black_list as t3 using (name) where address = -1040468645 order by name; +-----------+-------+------------+ | name | count | black_list | +-----------+-------+------------+ | a11e2win | NULL | NULL | +-----------+-------+------------+ mysql> select * from xla_black_list where name = "a11e2win"; +----------+--------------------+----------------+ | name | comments | last_modified | +----------+--------------------+----------------+ | a11e2win | Reconnection error | 20011214085513 | +----------+--------------------+----------------+
Het probleem is dat de eerste query in de kolom black_list NULL geeft, terwijl dat a11e2win zou moeten zijn.
Maar waar in de query gaat het fout?