Error!
SELECT c.cid, c.name, SUM(IF(p.addtime > 1516430257, 1, 0)) AS today FROM at_category c INNER JOIN at_pressrelease p ON p.cid = c.cid AND p.state = 1 WHERE 1=1 GROUP BY c.cid, c.name ORDER BY c.position ASC Too many connections