MySQL limit by variable

I have been writing a special web application framework around the n-tier pattern, and in the database layer I ran into a problem with MySQL.  Within a stored procedure you can order by a variable but not limit by a variable, which puts a small damper on pagination.  There are many threads on the Internet [...]