Small Query confusion

Having a small problem with my query below. I’m sure I’ve done something like this before so am not sure what is causing a problem.

Basically I want the meta_ids from the column meta_id where post_id = $currentPost.

SELECT meta_id FROM posts_meta WHERE post_id = $post_ID

But for some reason, even if I remove teh WHERE qualifier, it will only return the earliest meta_id rather than the three test entries I have in place. I var_dump’d the array returning the results and the rows aren’t present so while I’m not sure I do think this is an issue with my query and not the PHP side.

Am I missing something obvious here?

For context, this is the code I’m using around the query.

$result = mysql_query("SELECT meta_id FROM posts_meta WHERE post_id = $post_ID");
				$row = mysql_fetch_array($result);
				$post_meta_ids = $row;
		echo "<br/>";		

You need to use a loop to fetch all the rows of a result set

Hmm…I would’ve thought $row would contain all the results before I would then just extract them.

This solved the problem anyway, thanks SpacePhoenix.