Unknown column 'spring' in 'where clause'