Calendar Error [Solved]

Your phpBB Version: 2.0.22
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://christiansoldiersgaming.org
PHP Version:
MySQL Version:
What was done before the problem appeared?
Updated from 140
What was done to try to solve the problem?
Nothing yet, not sure where to begin.
De.scription and Message
Here is the error I get when I try to view a date on my sites Calendar:
Some dates it doesnt get the error, not sure why, the error seems to happen even on dates without topics.
Anyone have any ideas??? <img>
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://christiansoldiersgaming.org
PHP Version:
MySQL Version:
What was done before the problem appeared?
Updated from 140
What was done to try to solve the problem?
Nothing yet, not sure where to begin.
De.scription and Message
Here is the error I get when I try to view a date on my sites Calendar:
[align=center:2obfkt7i]Could not obtain topics information
DEBUG MODE
SQL Error : 1064 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 '-3, 47' at line 25
SELECT t.*, p.poster_id, p.post_username, p.enable_bbcode, p.enable_html, p.enable_smilies, u.username, pt.post_text, pt.bbcode_uid, lp.poster_id AS lp_poster_id, lu.username AS lp_username, lp.post_username AS lp_post_username, lp.post_time AS lp_post_time FROM phpbb_topics AS t, phpbb_posts AS p, phpbb_posts_text AS pt, phpbb_users AS u, phpbb_posts AS lp, phpbb_users lu WHERE t.forum_id IN (159, 160, 151, 152, 153, 183, 208, 154, 155, 156, 157, 158, 163, 74, 144, 146, 3, 2, 176, 50, 136, 4, 24, 61, 199, 6, 187, 188, 196, 177, 48, 147, 9, 62, 236, 195, 198, 27, 40, 12, 81, 13, 16, 10, 47, 17, 11, 14, 192, 42, 139, 202, 68, 69, 70, 71, 72, 73, 175, 178, 96, 34, 201, 225, 172, 173, 234, 235, 203, 53, 128, 101, 102, 226, 129, 189, 190, 197, 212, 211, 233, 227, 237, 238, 126, 131, 184, 107, 109, 110, 111, 112, 168, 174, 206, 193, 108, 115, 116, 117, 118, 205, 143, 223, 224, 52, 209, 219, 239, 220, 221, 222, 228, 229, 230, 231, 232, 200) AND p.post_id = t.topic_first_post_id AND pt.post_id = t.topic_first_post_id AND u.user_id = p.poster_id AND lp.post_id = t.topic_last_post_id AND lu.user_id = lp.poster_id AND t.topic_calendar_time <1171515600>= 1171429200 AND t.topic_status <> 2 ORDER BY t.topic_calendar_time, t.topic_calendar_duration DESC, t.topic_last_post_id DESC LIMIT -3, 47
Line : 410
File : functions_calendar.php[/align:2obfkt7i]
Some dates it doesnt get the error, not sure why, the error seems to happen even on dates without topics.
Anyone have any ideas??? <img>