string(2000) "SELECT DISTINCT CAST('' AS CHAR) AS url, aa.author_id, 0 AS submission_id, CAST('' AS CHAR) AS email, 0 AS primary_contact, 0 AS seq, SUBSTRING(COALESCE(aslfn.setting_value, asplfn.setting_value) FROM 1 FOR 255) as first_name_l, SUBSTRING(asplfn.setting_value FROM 1 FOR 255) as first_name_pl, SUBSTRING(COALESCE(aslmn.setting_value, asplmn.setting_value) FROM 1 FOR 255) as middle_name_l, SUBSTRING(asplmn.setting_value FROM 1 FOR 255) as middle_name_pl, SUBSTRING(COALESCE(aslln.setting_value, asplln.setting_value) FROM 1 FOR 255) as last_name_l, SUBSTRING(asplln.setting_value FROM 1 FOR 255) as last_name_pl, CASE WHEN = '' THEN NULL ELSE END AS country FROM authors aa LEFT JOIN author_settings asplfn ON (aa.author_id = asplfn.author_id AND asplfn.setting_name = 'firstName' AND asplfn.locale = 'ru_RU') LEFT JOIN author_settings aslfn ON (aa.author_id = aslfn.author_id AND aslfn.setting_name = 'firstName' AND aslfn.locale = 'ru_RU') LEFT JOIN author_settings asplmn ON (aa.author_id = asplmn.author_id AND asplmn.setting_name = 'middleName' AND asplmn.locale = 'ru_RU') LEFT JOIN author_settings aslmn ON (aa.author_id = aslmn.author_id AND aslmn.setting_name = 'middleName' AND aslmn.locale = 'ru_RU') LEFT JOIN author_settings asplln ON (aa.author_id = asplln.author_id AND asplln.setting_name = 'lastName' AND asplln.locale = 'ru_RU') LEFT JOIN author_settings aslln ON (aa.author_id = aslln.author_id AND aslln.setting_name = 'lastName' AND aslln.locale = 'ru_RU') 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 = '4' AND (asplln.setting_value IS NOT NULL AND asplln.setting_value <> '') AND LOWER(aslln.setting_value) LIKE LOWER('%') ORDER BY last_name_l, first_name_l"

DB Error: Error writing file '/tmp/MYu40ARZ' (Errcode: 28)