in reply to Conditional many to many relationships with Class::DBI
Well, you could theoretically return the expires field as well and test for expiration from your script. This should be reasonably efficient as long as you remove expired records from the table every now and then (which you should be doing anyway), but it's rather a klooge and there's hopefully a better way to do it.