MORE test

get_col($wpdb->prepare(”
SELECT ID
FROM $wpdb->posts
WHERE ($wpdb->posts.post_title LIKE ‘$c%’ or $wpdb->posts.post_title like ‘% $c%’)
AND $wpdb->posts.post_type = ‘lawyers’
ORDER BY $wpdb->posts.post_title”,$c)
);

if (!$postids) $postids=array(0);
$loop = new WP_Query(array(‘post_type’ => ‘lawyers’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1,
‘orderby’=>’menu_order’,’order’=>’ASC’, ‘post__in’=>$postids));

else:
$loop = new WP_Query(array(‘post_type’ => ‘lawyers’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1,
‘orderby’=>’menu_order’,’order’=>’ASC’));
endif;

//’meta_key’=>’group’, ‘orderby’=>’group title’,’order’=>’ASC’));

if ($loop->have_posts()):
echo “