I'm trying to join two tables to edit some data in phpymadmin, but I get an error saying "Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available."
Both tables contain a primaray id and also a unique key. How can I solve this?
Tried the following code:
SELECT fights.game_id, f1.lastname, f2.lastname, f1.id, f2.id, wfighter, lfighter, e.date, e.organization, e.event, fights.event_id FROM `fights`
join fighters f1 ON
f1.id = fights.wfighter
join fighters f2 ON
f2.id = fights.lfighter
join event e ON
e.event_id = fights.event_id
where e.organization = '1'
order by e.date desc, fights.game_id desc