I've got the following query:
SELECT insent.id, notifications.id
FROM insent
WHERE insent.id IN (
SELECT insent_id
FROM notifications
)
;
But this gives an error saying:
Unknown column 'notifications.id' in 'field list'
Any idea how I can do this?
See Question&Answers more detail:os