Thanks for the answer, and now I see the value. But the point now is that the query only brings one result. It should be 4, but inside the while only show one result (the one with ID= 3015). The other ids exist. I executed the script using a single ID in the query, and it works. But curiosity still bites to me. Why is not working if I make the query with multiple ID separated by "or" in PHP?