[support] using drupal in mysql without subquery

Drupal Indonesia support at drupal-id.com
Thu Oct 5 02:48:59 UTC 2006


here I found a solution!

SELECT DISTINCT uid, @test:=0, @test := @test+ 1
FROM node
WHERE type='blog'
GROUP BY uid
ORDER BY @test DESC
LIMIT 1


More information about the support mailing list