Input Array does not match ?: SELECT LEAST(a.last_modified, i.last_modified) AS last_modified, a.article_id AS article_id, j.journal_id AS journal_id, s.section_id AS section_id, i.issue_id, NULL AS tombstone_id, NULL AS set_spec, NULL AS oai_identifier FROM published_articles pa JOIN articles a ON (a.article_id = pa.article_id) JOIN issues i ON (i.issue_id = pa.issue_id) JOIN sections s ON (s.section_id = a.section_id) JOIN journals j ON (j.journal_id = a.journal_id) WHERE i.published = 1 AND j.enabled = 1 AND a.status <> 4 UNION SELECT dot.date_deleted AS last_modified, dot.data_object_id AS article_id, tsoj.assoc_id AS assoc_id, tsos.assoc_id AS section_id, NULL AS issue_id, dot.tombstone_id, dot.set_spec, dot.oai_identifier FROM data_object_tombstones dot JOIN data_object_tombstone_oai_set_objects tsoj ON (tsoj.tombstone_id = dot.tombstone_id AND tsoj.assoc_type = 256 AND tsoj.assoc_id = 'fts:ART') JOIN data_object_tombstone_oai_set_objects tsos ON (tsos.tombstone_id = dot.tombstone_id AND tsos.assoc_type = 259 AND tsos.assoc_id =

DB 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 '' at line 32