WordPress Categories: Function using custom SQL to return array of specific category IDs

If you use the built in get_terms function you end up with a quick one liner:

function get_positional_ids(){
    return get_terms( 'category', array('fields' => 'ids', 'name__like' => '_'));
}

no custom SQL, safe and simple.