To select multiple columns from a subquery, you'd normally use a join. Now I'm not sure exactly how your tables relate, but something like this would be a good start:
SELECT r.id
, rl.reminder_header
, rl.reminder_footer
FROM reminders r
JOIN reminder_levels AS rl
ON rl.customer_id = r.customer_id
WHERE rl.lookup =
(
SELECT MAX(reminder_level_lookup)
FROM reminders r2
WHERE r2.customer_id = r.customer_id
)
Andomar
2010-08-02 12:27:04