I’m getting
Error Number: 1066
Not unique table/alias: 'default_event_rel_type'
my query is:
SELECT `default_users`.`username` as user,
`default_event_rel_type`.`title` as title
FROM (`default_event_rel`, `default_event_rel_type`)
JOIN `default_users` ON `default_event_rel`.`uid` = `default_users`.`id`
JOIN `default_event_rel_type` ON `default_event_rel_type`.`id` = `default_event_rel`.`eid`
Looks like you have incorrect syntax in your
FROMclause. You are callingdefault_event_rel_typetwice. And you only need to call it once in yourJOIN. You don’t need to have it in theFROMclause.