DB Connect fail - survey[]

select sp.seq as published_seq,start_date,finish_date,state,UNIX_TIMESTAMP(start_date) as start_time,UNIX_TIMESTAMP(finish_date) as finish_time,s.* from survey_published as sp left join survey as s on sp.survey_seq=s.seq left join survey_idg_ext_info as se on s.seq=se.survey_seq where sp.start_date<=now() and sp.finish_date>=now() and (se.display_flg=1 or se.display_flg=2) and se.banner_display_flg=1 order by sp.start_date DESC,s.seq DESC