id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE p ALL EANcode NULL NULL NULL 17145 Using where; Using temporary; Using filesort 1 SIMPLE c1 ref EAN,naam,EAN_2 EAN 257 mijnshop_db.p.EANcode 1 1 SIMPLE c2 ref EAN,naam,EAN_2 EAN 257 mijnshop_db.p.EANcode 1 1 SIMPLE u ref EANcode EANcode 66 mijnshop_db.p.EANcode 1 Using where; Using index