I want to fetch classified details from a table. I have *classified\_ids* in a csv format. I break them out from CSV and make independent queries for every *classified\_id*.

What I am doing right now is:

```
SELECT * from classified WHERE classified_id = 501;

SELECT * from classified WHERE classified_id = 545;

SELECT * from classified WHERE classified_id = 578;

```

..... and so on... executing each one of them.

I feel this is inefficient for a large number of ids. Is there any better way to club all of these statements into one or make it more efficient somehow?

[I am using PHP mysql\* (I know its deprecated, its an old project)]

Thanks in advance.