Code: Select all
2009-02-01 22:20:18 CST ERROR: syntax error at or near "ORDER" at character 337
2009-02-01 22:20:18 CST STATEMENT: SELECT neg.tag AS tag, count(neg.tag) AS total
FROM serendipity_entrytags AS main
LEFT JOIN serendipity_entrytags AS neg ON main.entryid = neg.entryid
WHERE (main.tag = 'Sukumar das')
AND (neg.tag != 'Sukumar das')
GROUP BY neg.tag LIMIT 45 ORDER BY total DESC LIMIT 6