SQL Error: Unknown column 'current' in 'where clause'