select <field> from <table> order by rand() limit <int>;
I have a problem that when I use this in the shell I appear to get an always random listing of fields, but when run on the browser in a php script I almost always get the field of the first record in that table.
Currently I'm limiting the search to 6, and, like I mentioned above, I'm getting the field of the first record, and almost always as the first listing when run in the browser. Is there a patch to stop that from happening, and to make it more random?