Hi,
If you guys haven't figured this out yet, "anothernumber" happens to be the id column from the table "ps_image". You will need to do a join including the following tables,
ps_product,
ps_image
to get that image id, "anothernumber" for a specific product. Long-winded, but its either that or several queries to retrieve it.
HTH