I have a table which says how many rows to pull out the database. However, instead of having to do a query to get the row limit and then perform the actual query, I would like to combine the query. However, I don't think MySQL allows for this. Example of what I would like to do is below: