padders
06-12-01, 21:04
| Ok, i have some results in a table that look like NAME | GROUP header | fantasy header | footer | footer | fantasy main | and I am doing a query to get them out. It is something like: SELECT * FROM template WHERE (name IN ('header','footer','main')) AND (group_name='fantasy' OR group_name='') ORDER BY group_name DESC LIMIT 0,3 Thing is, i get the two top rows fine but i want the 3rd row to be the one with a name that has not appeared yet if you see what i mean? like header | fantasy footer | fantasy main | footer | header | any ideas? |