Unknown column 'locks_and_latches' in 'where clause'