Incorrect DB query for counting total number of records

git-svn-id: https://plugins.svn.wordpress.org/mycred/trunk@759280 b8457f37-d9ea-0310-8a92-e5e31aec5664
End of line SQL Query.

git-svn-id: https://plugins.svn.wordpress.org/mycred/trunk@759281 b8457f37-d9ea-0310-8a92-e5e31aec5664