Consider the query:
SELECT n.nid,
(select count(*) as count from view_log where id = n.nid) AS the_count,
(the_count + 1) as the_bumped_count
FROM node n
When I run this, I get Unknown column 'the_count' in 'field list'. Is there any way around this? It seems like the_count should be visible in the query and available for use, but apparently not. BTW, I also tried SUM(the_count, 1), but that also failed. Thanks!
I think this would work as well, and only require you to count once:
Or to go back to your syntax:
Good luck.