/
[In-Bulletin] Error during new topic posting [5.3.0-B1]

[In-Bulletin] Error during new topic posting [5.3.0-B1]

I'm getting SQL error, when attempting to post a new topic on Front-End.

RuntimeException:
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 'LIMIT 0,1' at line 3 (1064)

SQL:
SELECT Username
FROM 53x_Users
WHERE PortalUserId =
LIMIT 0,1  

Here is the stack trace:

It seems, that during some kind of refactoring we've left $user_id variable, but have never put any value in it.

Related Tasks