I have recently been programming in php for my clan's site. It has mostly been a blast, but I seem to have run into a large error.
Whenever I try to load the forum on the site, it gives me:
You can look at it at the site if you wish: http://sm269.com/phpBB3General Error
SQL ERROR [ mysqli ]
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 'AND (f.forum_id = t.forum_id)' at line 1 
An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
The funny thing is that the forum works perfectly on my WAMP server.
If the error was something like a missing template file or a t_parse error, I could probably fix it, but MYSQL is a totally foreign language to me. I have no idea what the error is saying.
I have uploaded the site and sql multiple times, but to no avail. It always produces the same result. I tried dumping the cache folder. Nothing.
If someone could atleast explain what the error is saying and possibly even provide a solution, I would be endlessly grateful.
Edit: I'm taking the site down one more time and uploading it again.