This is probably very easy and just I'm being thick - I'm trying to stop reserved items from being picked up in the records but only if the stock is greater than 0, I can't work out how to do an unless

```
"....WHERE blah blah AND (reserved = 0 OR reserved < ".(time()-1200).")"

```

So the column I'm looking at is called the "stock" column and if that value is 0 then I DO want to display the result

So I thought I could do

```
if(stock<>0,reserved = 0 OR reserved < ".(time()-1200.")

```

But that errors...