title: ERROR 1582 (42000) Incorrect parameter count in the call to native function 'FROM_UNIXTIME'
body: <p>When I try to convert the timestamp in the following query, using bash </p>
  
  <pre><code>docker exec compose_TSOwncloudMySQL_1 mysql -h localhost -udockerdev -pdocker owc -e "
  SELECT DATE_FORMAT(FROM_UNIXTIME(`timestamp`), '%Y%m%d timestamp%h:%i:%s') AS 'date_formatted',
      oc_ldap_user_mapping.ldap_dn,
      oc_activity.subject,
      oc_activity.file,
      oc_activity.subjectparams
  FROM oc_activity INNER JOIN oc_ldap_user_mapping ON oc_activity.user = oc_ldap_user_mapping.owncloud_name 
  ORDER BY oc_activity.timestamp;"&gt; /home/dockerdmz/tsowncloud/log_owc/owc_$DATE.log`
  </code></pre>
  
  <p>I have this error:</p>
  
  <pre><code>ERROR 1582 (42000) at line 2: Incorrect parameter count in the call to native function 'FROM_UNIXTIME'
  </code></pre>
  
  <p>When I run this query in MySQL admin page, it works well. </p>
  
  <pre><code>SELECT DATE_FORMAT(FROM_UNIXTIME(`timestamp`), '%Y%m%d %h:%i:%s') AS 'date_formatted',
  oc_ldap_user_mapping.ldap_dn,
  oc_activity.subject, 
  oc_activity.file, 
  oc_activity.subjectparams
  FROM oc_activity INNER JOIN oc_ldap_user_mapping ON oc_activity.user = oc_ldap_user_mapping.owncloud_name
  ORDER BY oc_activity.timestamp;
  </code></pre>
  
  <p>When I run this bash code (without timestamp conversion), it works well</p>
  
  <pre><code>Docker exec compose_TSOwncloudMySQL_1 mysql -h localhost -udockerdev -pdocker owc -e "
  SELECT oc_activity.timestamp,
      oc_ldap_user_mapping.ldap_dn,
      oc_activity.subject,
      oc_activity.file,
      oc_activity.subjectparams
  FROM oc_activity INNER JOIN oc_ldap_user_mapping ON oc_activity.user = oc_ldap_user_mapping.owncloud_name
  ORDER BY oc_activity.timestamp;"&gt; /home/dockerdmz/tsowncloud/log_owc/owc_$DATE.log
  </code></pre>