SELECT FROM_UNIXTIME(date_set, '%Y-%m-%d') AS date_set, count(id) AS Qtq
FROM `news_users`
WHERE status=1 AND cat_id NOT IN (3) AND YEAR(FROM_UNIXTIME(date_set, '%Y-%m-%d')) =
AND MONTH(FROM_UNIXTIME(date_set, '%Y-%m-%d')) =
GROUP BY DAY(FROM_UNIXTIME(date_set, '%Y-%m-%d'))
LIMIT 0, 31 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 MONTH(FROM_UNIXTIME(date_set, '%Y-%m-%d')) =
GROUP BY DAY(FROM_UNIXTI' at line 4; KOD: 1064
Статьи