<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged 42000</title>
<link>https://www.question2answer.org/qa/tag/42000</link>
<description>Powered by Question2Answer</description>
<item>
<title>PHP message: PHP Question2Answer MySQL query error 42000: SQLSTATE[42000]</title>
<link>https://www.question2answer.org/qa/76787/message-question2answer-mysql-query-error-42000-sqlstate</link>
<description>

&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I've setup a Q&amp;amp;A using the following versions:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;&lt;strong&gt;Ubuntu 18, (using NGINX)&lt;/strong&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Q&amp;amp;A version 1.8.3&amp;nbsp;&lt;/strong&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;MySQL 5.7&amp;nbsp;&lt;/strong&gt;&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;PHP 7.2&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;My authentication is via LDAP and it's working pretty good.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;However, I noticed that when we try to add a new question, the following message pops out in the screen:&lt;/p&gt;

&lt;pre&gt;A Question2Answer database query failed when generating this page.

A full description of the failure is available in the web server's error log file.&lt;/pre&gt;

&lt;p&gt;So I went to the logs [/var/log/nginx/error.log] and found the following issues:&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;&lt;sup&gt;&lt;span style=&quot;background-color:#dddddd&quot;&gt;PHP message: PHP Question2Answer MySQL query error 42000: SQLSTATE[42000]: Syntax error or access violation: 1064 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 ''Array','Array','Array','Array','Array','Array','Array','Array','Array'' at line 1 - Query: INSERT IGNORE INTO qa_words (word) VALUES ?,?,?,?,?,?,?,?,?&quot; while reading response header from upstream, client: 10.2.40.200, server: devwiki.brq.com, request: &quot;POST /qa/index.php?qa=ask HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/var/run/php/php7.2-fpm.sock:&quot;, host: &quot;devwiki.brq.com&quot;, referrer: &quot;http://devwiki.brq.com/qa/index.php?qa=ask&quot;&lt;/span&gt;&lt;/sup&gt;&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;I would like to know if there is an especific version of MySQL to be installed, or anything else that must be done or adjusted to get ride of this error.&lt;/p&gt;

&lt;p&gt;Appreciate any help,&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;pre&gt;Details:&lt;/pre&gt;

&lt;table style=&quot;width:707px; border-spacing: 0px;&quot;&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;pre&gt; PHP:&lt;/pre&gt;&lt;/td&gt;

&lt;td&gt;

&lt;pre&gt;7.2.19-0ubuntu0.18.04.1&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;

&lt;pre&gt;MySQL:&lt;/pre&gt;&lt;/td&gt;

&lt;td&gt;

&lt;pre&gt;5.7.26-0ubuntu0.18.04.1&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/76787/message-question2answer-mysql-query-error-42000-sqlstate</guid>
<pubDate>Wed, 24 Jul 2019 18:52:36 +0000</pubDate>
</item>
</channel>
</rss>