get_record_by_id uses 'prio' not 'priority'

Really simple bug fix means priorities are displayed when deleting records.