DB Error: Unknown column 'a.publication_id' in 'on clause' Query: select * from `authors` as `a` left join `publications` as `p` on `a`.`publication_id` = `p`.`publication_id` left join `submissions` as `s` on `p`.`submission_id` = `s`.`submission_id` left join `author_settings` as `fn` on `a`.`author_id` = `fn`.`author_id` left join `author_settings` as `gn` on `a`.`author_id` = `gn`.`author_id` inner join `author_settings` as `cs` on `a`.`author_id` = `cs`.`author_id` inner join `author_settings` as `afs` on `a`.`author_id` = `afs`.`author_id` where `s`.`context_id` in (?) and (`fn`.`setting_name` = ? and `fn`.`setting_value` = ?) and (`gn`.`setting_name` = ? and `gn`.`setting_value` = ?) and (`cs`.`setting_name` = ? and `cs`.`setting_value` = ?) and (`afs`.`setting_name` = ? and `afs`.`setting_value` = ?)