Fatal error: 1064: 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 'AND status = 1 ORDER BY datestamp DESC' at line 1
SELECT id,FROM_UNIXTIME(datestamp, '%M') AS month FROM `docs` WHERE groupId = 517 and `typeId` =17 AND FROM_UNIXTIME(datestamp, '%Y') = AND status = 1 ORDER BY datestamp DESC in /var/www/vhosts/cm.gcm.cscglobal.com/httpdocs/gcore/classes/db.php on line 139