Input array does not match ?: SELECT DISTINCT CAST('' AS CHAR) AS url, 0 AS author_id, 0 AS submission_id, CAST('' AS CHAR) AS email, 0 AS primary_contact, 0 AS seq, aa.first_name, aa.middle_name, aa.last_name, CASE WHEN asl.setting_value = '' THEN NULL ELSE SUBSTRING(asl.setting_value FROM 1 FOR 255) END AS affiliation_l, asl.locale, CASE WHEN aspl.setting_value = '' THEN NULL ELSE SUBSTRING(aspl.setting_value FROM 1 FOR 255) END AS affiliation_pl, aspl.locale AS primary_locale, CASE WHEN aa.country = '' THEN NULL ELSE aa.country END AS country FROM authors aa LEFT JOIN author_settings aspl ON (aa.author_id = aspl.author_id AND aspl.setting_name = 'affiliation' AND aspl.locale = 'en_US') LEFT JOIN author_settings asl ON (aa.author_id = asl.author_id AND asl.setting_name = aspl.setting_name AND asl.locale = aspl.locale) JOIN articles a ON (a.article_id = aa.submission_id AND a.status = 3) JOIN published_articles pa ON (pa.article_id = a.article_id) JOIN issues i ON (pa.issue_id = i.issue_id AND i.published = 1) WHERE a.journal_id = 'affiliation' AND (aa.last_name IS NOT NULL AND aa.last_name <> '') 'en_US''5056'
Input array does not match ?: SELECT DISTINCT CAST('' AS CHAR) AS url, 0 AS author_id, 0 AS submission_id, CAST('' AS CHAR) AS email, 0 AS primary_contact, 0 AS seq, aa.first_name, aa.middle_name, aa.last_name, CASE WHEN asl.setting_value = '' THEN NULL ELSE SUBSTRING(asl.setting_value FROM 1 FOR 255) END AS affiliation_l, asl.locale, CASE WHEN aspl.setting_value = '' THEN NULL ELSE SUBSTRING(aspl.setting_value FROM 1 FOR 255) END AS affiliation_pl, aspl.locale AS primary_locale, CASE WHEN aa.country = '' THEN NULL ELSE aa.country END AS country FROM authors aa LEFT JOIN author_settings aspl ON (aa.author_id = aspl.author_id AND aspl.setting_name = 'affiliation' AND aspl.locale = 'en_US') LEFT JOIN author_settings asl ON (aa.author_id = asl.author_id AND asl.setting_name = aspl.setting_name AND asl.locale = aspl.locale) JOIN articles a ON (a.article_id = aa.submission_id AND a.status = 3) JOIN published_articles pa ON (pa.article_id = a.article_id) JOIN issues i ON (pa.issue_id = i.issue_id AND i.published = 1) WHERE a.journal_id = 'affiliation' AND (aa.last_name IS NOT NULL AND aa.last_name <> '') ORDER BY aa.last_name, aa.first_name'en_US''5056'
Input array does not match ?: SELECT DISTINCT CAST('' AS CHAR) AS url, 0 AS author_id, 0 AS submission_id, CAST('' AS CHAR) AS email, 0 AS primary_contact, 0 AS seq, aa.first_name, aa.middle_name, aa.last_name, CASE WHEN asl.setting_value = '' THEN NULL ELSE SUBSTRING(asl.setting_value FROM 1 FOR 255) END AS affiliation_l, asl.locale, CASE WHEN aspl.setting_value = '' THEN NULL ELSE SUBSTRING(aspl.setting_value FROM 1 FOR 255) END AS affiliation_pl, aspl.locale AS primary_locale, CASE WHEN aa.country = '' THEN NULL ELSE aa.country END AS country FROM authors aa LEFT JOIN author_settings aspl ON (aa.author_id = aspl.author_id AND aspl.setting_name = 'affiliation' AND aspl.locale = 'en_US') LEFT JOIN author_settings asl ON (aa.author_id = asl.author_id AND asl.setting_name = aspl.setting_name AND asl.locale = aspl.locale) JOIN articles a ON (a.article_id = aa.submission_id AND a.status = 3) JOIN published_articles pa ON (pa.article_id = a.article_id) JOIN issues i ON (pa.issue_id = i.issue_id AND i.published = 1) WHERE a.journal_id = 'affiliation' AND (aa.last_name IS NOT NULL AND aa.last_name <> '') ORDER BY aa.last_name, aa.first_name LIMIT 0,500'en_US''5056'

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 ''en_US''5056'' at line 25