Error : 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 (dtd.document_type = dd.document_type OR ' at line 11
SELECT dd.document_id, d.document_type, dd.detail_cd, dd.detail_data, dtd.detail_description, d.qub_location, d.ucd_location FROM document_details dd, document_type_details dtd, documents d WHERE dd.document_id IN () AND (dtd.document_type = dd.document_type OR dtd.document_type = 'default') AND dtd.detail_cd = dd.detail_cd AND d.document_id = dd.document_id ORDER BY dd.document_id, dtd.ordering
There has been an error, cannot query database, please try again later.