Напоминалочка. Всегда под рукой чтобы лежалочка =)
SELECT a.proid, a.first_time, a.last_time, a.user, program_schedule.chid, program_schedule.start, program_schedule.stop, program_schedule.pro, program_schedule.desc, program_schedule.category, program_schedule.year, program_schedule.rating, program_schedule.posters FROM `archive_log` AS a RIGHT OUTER JOIN `program_schedule` ON a.proid=program_schedule.id WHERE a.last_time>=".($time-60)." LIMIT 25;