SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause (SQL: select count(*) as aggregate from `apps` order by `id` desc)

I figured it out.  @Snapey got me looking and the compiled files.  The problem was the else statement was being fired because of this code change causing the else to be rendered.  The else code is expecting the user to be logged in