Hey guys,
So I have this code set up:
$rows = $wpdb->get_results("
SELECT ID, post_title
FROM $wpdb->posts
WHERE post_type = 'page'
AND ID IN('206','176','200','196','68','129')"
);
Which works as expected. However, I need to replace the last line and all the hard-coded numbers with an array var that I have created already so it would read something like:
AND ID IN($page_numbers)
This however fails. Any ideas how to include an array such as I'm doing here?