Page 1 of 1

freetag plugin issues query without parameters - SQL error

Posted: Sun Mar 28, 2010 11:56 pm
by ads
The following query is sometimes issues by the freetag plugin:

Code: Select all

SELECT neg.tag AS tag, count(neg.tag)  AS total
  FROM serendipity_entrytags AS main
 WHERE ()
     AND ()
  GROUP BY neg.tag
Resulting in a SQL error:
2010-03-28 23:32:23 CEST ERROR: syntax error at or near ")" at character 146
There should be no WHERE and AND, if the () are empty.

Re: freetag plugin issues query without parameters - SQL error

Posted: Mon Mar 29, 2010 9:51 am
by garvinhicking
Hi!

Thanks a lot, I've fixed the plugin to check for this condition.

Regards,
Garvin