OK, have put it there - was just querying it as that is the code block for the update column order that was created a long time ago rather than the column toggle...
With the die statement at line 190, I am still getting the same error:
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 ProductID = 0 ORDER BY ProductName ASC LIMIT 0, 1000' at line 1
on closer inspection, I moved the die statement to line 211 and get this error:
UPDATE products SET ProductOrder = WHERE ProductID = 0 ORDER BY ProductName ASC