When I use this query:
SELECT `visitors`.`id`, `visitors`.`ip`, `visitors`.`url`, `visitors`.`time`, `visitors`.`agent`, `visitors`.`reference`
FROM (`visitors`)
WHERE `reference` NOT LIKE '%bot%'
ORDER BY `id` desc
LIMIT 2000
In the results I can’t see rows where the reference column is empty. What should I do to create a result set with empty reference columns?
Try :
NULLis not handled the same way as an empty value.