 <p>Thanks to all. The additional AND condition worked. I had actually tried that earlier but it didn't work when I was testing, in my haste I had not yet added the "completed" column to the table yet. Thanks again. </p>