Unknown column 'complete' in 'where clause'