Advanced conditions in Database Abstraction Layer?
You need to use the 'where' method for complex conditionals:

db_delete('table')
  -&gt;where('UNIX_TIMESTAMP() - date &gt; :date', array(':date' =&gt; 7780000))
  -&gt;execute();