I have a query in the model of my table:
$q = $this->createQuery('a')
->where('a.img1 = null')
->orderBy('a.created_at DESC')
->limit(4);
The thing is that it returns nothing, but in DB there is an entry with no image (img1 field is null). What am I doing wrong? thank you