since two tables: archives
and jobrt
contains columnName typeID
, you need to specify the tableName where the value came from, eg
SELECT id
, pubdate
, jobrt.typeid
, aid
, jobname
, jobdepart
, jobplace
, jobnumber
, jobcontact
FROM archives
RIGHT JOIN jobrt
ON archives.id = jobrt.aid
WHERE jobrt.typeid = 19