Input Array does not match ?: SELECT DISTINCT aa.paper_id FROM paper_authors aa LEFT JOIN papers a ON (aa.paper_id = a.paper_id) LEFT JOIN paper_author_settings aslfn ON (aa.author_id = aslfn.author_id AND aslfn.setting_name = 'Alexander') LEFT JOIN paper_author_settings aslmn ON (aa.author_id = aslmn.author_id AND aslmn.setting_name = 'M.') LEFT JOIN paper_author_settings aslln ON (aa.author_id = aslln.author_id AND aslln.setting_name = 'Boronachin') LEFT JOIN paper_author_settings aslaf ON (aa.author_id = aslaf.author_id AND aslaf.setting_name = '<p>Saint Petersburg Electrotechnical Univeristy &ldquo;LETI&rdquo;</p>') WHERE a.status = 3 AND aslfn.setting_value = 'RU' AND (aslmn.setting_value =

DB Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 11