Question: I have declared my anchor style like this:

```
.disabledanchor a,
.disabledanchor a:hover,
.disabledanchor a:focus {
color: inherit;
cursor: inherit;
text-decoration: inherit
}

```

What should I pass to the jquery addclass to apply this style? 

Thanks,
Chris.

Answer: 
In case it's not obvious from all the other answers yet, you should create a B-tree [index](http://dev.mysql.com/doc/refman/5.6/en/optimization-indexes.html) on the `epoch` column.

Also, if you're not yet familiar with [using `EXPLAIN` to study the efficiency of your queries](http://dev.mysql.com/doc/refman/5.6/en/execution-plan-information.html), you should be.
As mentioned, use index on the currentepoch. It allows the table to search through that column faster.

An other solution would be to mark events as expired through a cronjob, updating all expired events with a value, run it each minute and just search on this value instead of using `>`.