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 'show AND in_recycle = 0' at line 1 SELECT COUNT(id) FROM forum_topics WHERE forum_id = 2 AND top = 0 AND special_id = show AND in_recycle = 0

[error string missing]

SELECT * FROM forum_topics WHERE forum_id = 2 AND top = 0 AND special_id = show AND in_recycle = 0 ORDER BY lastdatetime DESC LIMIT 0, 25