Thanks @benhuson, I knew about the two space primary key issue. , didn't know about the backtick restriction. Didn't look at why the function worked with the back ticks, just removed them,