Unknown column 'pull' in 'where clause'