@org_logo_attchment=Attachment.where("container_id =? and container_type =? and attachtype =?",@organization,"Organization",0).order("created_on desc").first
@org_logo_attchment=Attachment.find_by_sql("SELECT * from attachments WHERE container_id = #{@organization.id} and container_type = 'Organization' and attachtype = 0 and filename REGEXP '(.jpg|.png|.bmp|.gif|.jpeg)' ORDER BY created_on desc limit 1").first
@org_banner_attchment=Attachment.where("container_id =? and container_type =? and attachtype =?",@organization,"Organization",1).order("created_on desc").first
@org_banner_attchment=Attachment.find_by_sql("SELECT * from attachments WHERE container_id = #{@organization.id} and container_type = 'Organization' and attachtype = 1 and filename REGEXP '(.jpg|.png|.bmp|.gif|.jpeg)' ORDER BY created_on desc limit 1").first