'total' appears to have become a keyword but is not documented as such
report-zone opened this issue · comments
I have a table which contains total as a column name, this seems to cause all kinds of problems.
I can retrieve it by escaping
select `total' from bills
however I cannot use SUM anymore
select SUM(total) from bills
or
select SUM(total
) from bills
both throw and error
This was caused by a poor query. Not an actual problem.