What a joy to find such clear thniknig. Thanks for posting!
lib/DbSession/SQL.php:97: Notice: Only variables should be assigned by reference