Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
SQL ERROR [ mysql4 ]
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 in_message = 0 ORDER BY filetime DESC' at line 4 [1064]
SQL
SELECT * FROM phpbb_attachments WHERE `post_msg_id` = AND in_message = 0 ORDER BY filetime DESC
BACKTRACE
FILE: includes/db/mysql.php
LINE: 158
CALL: dbal->sql_error()
FILE: portal/includes/functions.php
LINE: 283
CALL: dbal_mysql->sql_query()
FILE: portal/block/news.php
LINE: 30
CALL: phpbb_fetch_posts()
FILE: portal.php
LINE: 115
CALL: include('portal/block/news.php')
Hi!
I try in LOCALHOST, before i change to my main forum, i've a phpbb3 1.2.2 portal instaled, but i want yours!
That error only appears when i select "no" in the "compact news block style" on the "acp"
SQL ERROR [ mysql4 ]
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 in_message = 0 ORDER BY filetime DESC' at line 4 [1064]
SQL
SELECT * FROM phpbb_attachments WHERE post_msg_id = AND in_message = 0 ORDER BY filetime DESC
BACKTRACE
FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()
FILE: portal/includes/functions.php
LINE: 283
CALL: dbal_mysql->sql_query()
FILE: portal/block/news.php
LINE: 30
CALL: phpbb_fetch_posts()
FILE: portal.php
LINE: 115
CALL: include('portal/block/news.php')
this error only appears if I have the attach active in ACP -> General -> Board Configuration -> Attachment settings -> Attachment display order, if I deactivate, the error doesn't appear.