[FIX] Was counting result of comparison, rather than comparing the count. Also stopped it querying with no WHERE statement causing an error (once the above was fixed)
[FIX] Was counting result of comparison, rather than comparing the count.
Also stopped it querying with no WHERE statement causing an error (once the above was fixed)


git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@20160 b456876b-0849-0410-b77d-98878d47e9d5

changi67/tiki,oregional/tiki,changi67/tiki,tikiorg/tiki,tikiorg/tiki,changi67/tiki,tikiorg/tiki,oregional/tiki,changi67/tiki,oregional/tiki,changi67/tiki,tikiorg/tiki,oregional/tiki