Closed (fixed)
Project:
Taxonomy Block
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2005 at 06:14 UTC
Updated:
25 Apr 2005 at 11:15 UTC
Hello,
When I enable the Taxonomy Block I get the following error:
user error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND n.status = 1 ORDER BY sticky DESC, created DESC LIMIT 5'
query: SELECT DISTINCT(n.nid), n.title, n.body FROM main_term_node t INNER JOIN main_node n ON t.nid = n.nid WHERE t.tid IN () AND n.status = 1 ORDER BY sticky DESC, created DESC LIMIT 5 in /home/www/00/act.greens.org.au/www/public_site/includes/database.mysql.inc on line 66.
Does anyone know what might be causing this, and how to fix it?
Thanks,
sam.
Comments
Comment #1
jjcambefort commentedhello
have you created some taxonomy items?
regards
jjc
Comment #2
samwilson commentedI figured it out: I was pointing it to a vocabulary that didn't have any terms in it. That's all. I put a few terms in it, and voila, it works. Still seems like a funny error though...
Comment #3
samwilson commentedThanks to jjcambefort: that was the problem. :-) All works now...
Comment #4
(not verified) commented