Pointless update...
Make use of utility functions.
Better process forking mechanism.
1) Correctly caches table fields.
2) Tries to bind queries by value, making use of numeric values.
Rewrites the filtering mechanism, omitting the COUNT(*) statement.