Hi all,
I'm running the following code to get a random entry from a dictionary:
SELECT * FROM tbl_dict WHERE 1 ORDER BY RAND() LIMIT 1
This works great, but as soon as I expand there WHERE clause the query fails. What I need is something like...
SELECT * FROM tbl_dict WHERE 1 and lock='0' ORDER BY RAND() LIMIT 1
Can anyone point out to me where I'm going wrong? My mind has turned to peanut butter.
Thank you!