1
highlander
News 1.3 sql error
  • 2005/4/17 19:10

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Hi all,

News 1.3 is giving me the following error :

SELECT s.*, t.topic_frontpage FROM xoops_stories s, xoops_topics t WHERE (published > 0 AND published <= 1113761809) AND (expired = 0 OR expired > 1113761809) AND (s.topicid=t.topic_id) AND topicid IN (1,,,,,,) ORDER BY s.published DESC LIMIT 0, 10
Error number: 1064
Error message: 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 ',,,,) ORDER BY s.published DESC LIMIT 0, 10' at line

I can understand that MySQL doesn't like the IN (1,,,,,,) part of the query above. I am however not sure why I am getting this error. As far as I know nothing has changed on the site (execpt for content) and none of the topicid's start with 1.
Also I cannot find any stories in the database without a topicid as the error above might suggest.

Any thoughts on this error are more than welcome !

greetings Highlander

2
highlander
Re: News 1.3 sql error
  • 2005/4/17 19:24

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Updating the News module has fixed this issue ** Hurrah **, however I am still curious how this error was created.

Any thoughts ??

Greetings Highlander

Login

Who's Online

108 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 108


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits