Your query returns nothing and you swear the data is there. The problem is almost always comparing to NULL with =. Understand it in 3 minutes.