Question about of query

I had a question that dont know why happen you use that query

and work fine but if try to do this , the query return values that dont are correct

I get a post that does not meet the condition

what am I doing wrong?