Topic: PunBB can't find posts anymore
I'm radically rearranging PunBB (sorry) to try to build a well-integrated site with several other php scripts.
So far everything sort of works, but now PunBB can't find the posts anymore.
...
According to debug the cause it's a syntax error:
An error was encountered
File: /home/website/public_html/forum/edit.php
Line: 28
PunBB reported: Unable to fetch post info
Database reported: 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 posted LIMIT 1' at line 1 (Errno: 1064)
I added questions about that to this thread, but the line is unedited PunBB code and worked before.
So the problem may have nothing to do with php syntax and be something else I'm overlooking. I probably need to look at this from another perspective. That's why I post this as a seperate topic.
Apologies if it turns out to be a double post after all...