SELECT field, other_field FROM table WHERE some_thing IN ( SELECT id FROM other_table ) AND other_field IS NOT NULL
SELECT field, other_field FROM TABLE WHERE some_thing IN ( SELECT id FROM other_table) AND other_field IS NOT NULL
* ORDER BY
* INNER JOIN
etc