Topic: Unable to fetch forum info
I seem to get an error message when I try to make replys to topics but not when I post a new topic. Here is the error message:
An error was encountered
File: /var/www/html/include/functions.php
Line: 252
PunBB reported: Unable to fetch forum info
Database reported: You have an error in your SQL syntax near '' at line 1 (Errno: 1064)
Here is line 252:
$result = $db->query('SELECT moderators, admmod_only, closed FROM '.$db->prefix.'forums WHERE id='.$forum_id) or error('Unable to fetch forum info', __FILE__, __LINE__, $db->error());
I also ran dump() and here is what I got when I tried to post using the quick post:
SELECT moderators, admmod_only, closed FROM pun_forums WHERE id=
Here is what i got using post.php:
SELECT moderators, admmod_only, closed FROM pun_forums WHERE id=6
PS: I've using version 1.1.5
Any ideas what is wrong? Thanks,
~Goober