postgresql7.1 select to_char(scheduled_date, 'YYYY-MM-DD HH24:MI') as execution_date, subject from ml_mail_jobs where mail_job_id=:mail_job_id