If you have a table field with NULL in it that you use as a filter - sometimes it causes logic to fail and you have to do
SELECT * FROM tablename WHERE (fieldname > {$strValue} AND fieldname IS NOT NULL)
or something to that effect.
Be careful when doing math functions on these fields as well (sum, avg, max, min) also gets affected if you have null values in your table.