Can't perform query on database Error: Unknown column 'C1' in 'where clause'