ERROR:  syntax error at end of input
LINE 1: ...onth FMDD,IYYY') as etm from ewf.images where typ=14 and id=
                                                                       ^

select id,pth,tk_dte,to_char(tim, 'FMDay,Month FMDD,IYYY') as etm from ewf.images where typ=14 and id=