I need to fetch a single result from my database that is that Maximum value of a single column, similar to SELECT MAX() but here's the catch, the table is set up so it has a column for "order" (as in arrangement within a page: 1 being top of the list and so on). The data is also sub divided into groups which is represented by a "groups" column, so "order" is relative strictly within a group. I need the query to be able to select the max value of "order" but only within the confines of "group x"