I use OOP and MVC, so each beam/ folder class has it's own static table property, implements their getters and setters (modifying a stdClass object), and they all extend from the Beam class that assembles the queries.
And I don't know how that query went empty, because even when the user changes something the whole query goes to the log.
The 3 single quotes (''') in the log is what worries me.
Code is in portuguese, if you know a little spanish, french or latin you may understand a thing or two.
attached the control class that log into the system, code is old, so I didn't refactor it for long.
[attachment deleted by admin]