I have a simple array in PHP, say
[1, 2, 4, 5, 6, 7]
and I wish to query a MYSQL database
[1, who]
[2, where]
[3, some]
[6, there]
[9, too]
I only wish to receive the rows of intersection between the PHP array and the database's indices column. So this would result in
[1, who]
[2, where]
[6, there]
Any ideas? Thanks!