SELECT ditp_contents.contents_id , ditp_contents_cate.cate_id , ditp_contents_lang.contents_title , ditp_contents_lang.contents_information , ditp_contents_lang.contents_description , ditp_contents.contents_hits , ditp_contents.contents_image , ditp_contents.contents_url, ditp_contents.contents_file, ditp_contents.contents_target , ditp_contents.contents_create_date, ditp_contents.contents_modified_date , ditp_content_attach.files_filename , ditp_content_attach.files_filetype FROM ditp_contents_cate LEFT JOIN ditp_contents on ditp_contents_cate.contents_id = ditp_contents.contents_id LEFT JOIN ditp_contents_lang on ditp_contents_cate.contents_id = ditp_contents_lang.contents_id LEFT JOIN ditp_content_attach on ditp_contents_cate.contents_id = ditp_content_attach.contents_id WHERE ditp_contents.contents_id= AND ditp_contents.contents_status > 0 ORDER BY ditp_contents.contents_modified_date DESC limit 2
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ditp_contents.contents_status > 0 ORDER BY ditp_contents.contents_modi' at line 20