Note
This function can not be called
statically.
Depending on the database you will not really get
more speed compared to
query(). The advantage of
limitQuery() is the deleting of unneeded
rows in the resultset, as early as possible. So this can
decrease memory usage.
Also note that $from and $count are
not being escaped. You should take care of sanitizing input yourself,
or you are open to an SQL injection attack.