ti dico la query, mettila dove ti pare
select a.assign, b.assign from tabella a, tabella b where a.id = 12 and b.id = 19