MySQL ERROR:

Error Number: 1690

Description: BIGINT UNSIGNED value is out of range in '(('654' - '654') - 1)'

Query: SELECT node.*, (COUNT(parent.lft) - 2) AS depth, if((node.rgt - node.lft) = 1,1,0) AS isLeaf, ((node.rgt - node.lft - 1) DIV 2) AS numChildren FROM exp_structure AS node INNER JOIN exp_structure AS parent ON node.lft BETWEEN parent.lft AND parent.rgt WHERE node.entry_id = '24' GROUP BY node.lft LIMIT 1