Make sure that the values stored in the database match the query criteria, i.e., things like "no" and "No" must be the same. If you have WHERE read='no', then the data in the db must also be saved as 'no', not as 'No' which is capitalized. Sounds like something very basic, I know, but someting to double-check.