Hi, I've got a database that stores small messages for a service, what I want to be able to do is get all rows from the database where the columns "sent" and "readdate" match, I have this, but it's erroring. Any pointers please?
SELECT * FROM memodata WHERE 1 AND to=1 AND readdate=sent ORDER BY id ASC Many thanks, Dan P.S: Using MySQL, DBD::mysql, not sure if you need to know that, but saying anyway ;)
