Sometimes my users loves to quote someone from another board doing some kind of :
Code: Select all
[quote="Someone From Another Board"]
blah
[/quote]
This gives :
Code: Select all
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 ') WHERE u.user_id = 146' at line 1 [1064]
SQL
SELECT u.user_id, u.username, u.user_colour, posts.post_id, posts.forum_id, posts.topic_id, posts.post_time, posts.post_subject FROM (phpbb_users u) LEFT JOIN phpbb_posts posts ON (posts.post_id = ) WHERE u.user_id = 146
BACKTRACE
FILE: includes/db/mysql.php
LINE: 158
CALL: dbal_mysql->sql_error()
FILE: includes/bbcode.php
LINE: 600
CALL: dbal_mysql->sql_query()
FILE: includes/bbcode.php(112) : regexp code
LINE: 2
CALL: bbcode->bbcode_second_pass_quote()
FILE: includes/bbcode.php
LINE: 112
CALL: preg_replace()
FILE: viewtopic.php
LINE: 1263
CALL: bbcode->bbcode_second_pass()