DrupalBin
Submit Code
About
Recent Posts
admin settings not saving
56 min 16 sec
ago
Code
1 hour 39 min
ago
Code
1 hour 55 min
ago
css path
3 hours 39 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for VotingAPI + Views buggy query
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
SELECT DISTINCT(node.nid), votingapi_vote_vote_points.timestamp AS votingapi_vote_vote_points_timestamp FROM node node LEFT JOIN votingapi_cache votingapi_cache_vote_points_count ON node.nid = votingapi_cache_vote_points_count.content_id AND votingapi_cache_vote_points_count.content_type = 'node' AND votingapi_cache_vote_points_count.value_type = 'points' AND votingapi_cache_vote_points_count.tag = 'vote' AND votingapi_cache_vote_points_count.function = 'count' LEFT JOIN votingapi_vote votingapi_vote_vote_points ON node.nid = votingapi_vote_vote_points.content_id AND votingapi_vote_vote_points.content_type = 'node' AND votingapi_vote_vote_points.value_type = 'points' AND votingapi_vote_vote_points.tag = 'vote' WHERE (node.status = '1') AND (node.type IN ('blog')) AND (votingapi_cache_vote_points_count.value >= 5) GROUP BY node.nid, votingapi_vote_vote_points_timestamp ORDER BY votingapi_vote_vote_points_timestamp DESC LIMIT 0, 5
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.