cheers for all the replies, sounds like a great solution, but I can't seem to get it to work 🙁
I get this error:
Query failed (): You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(FIELDNAME, 5), ', The'), FIELDNAME) AS list_item FROM table
Could it have something to do with my host only having mysql 4.0.27 installed?