Sicuramente devi fare un join.

Se ti è possibile postare un dump delle due tabelle con alcuni record fittizi è più facile aiutarti.