Warning: mysql_query(): No such file or directory in /var/www/html/DGTopInternautas.php on line 18

Warning: mysql_query(): A link to the server could not be established in /var/www/html/DGTopInternautas.php on line 18
SELECT SUM( valor ) AS Total, C.nome , urlavatar,C.codigo as codigo FROM cliente_pontos CP INNER JOIN cliente C ON CP.codigo_cliente = C.codigo and C.bot=0 WHERE ((MONTH(CP.data) = MONTH(NOW())) AND (YEAR(CP.data) = YEAR(NOW()))) GROUP BY C.nome,urlavatar,codigo ORDER BY Total DESC